[Next] [Prev] [Right] [Left] [Up] [Index] [Root]
Prompt

Prompt

When Magma is expecting input, it puts a prompt symbol on the left of the screen.

The prompt usually looks like

>

but if you have just pressed the <return> key and Magma thinks that you have not finished the statement then the prompt may have one or more words in front of the > .

For instance, if you have typed

> print 9 - 3

then Magma will respond

print>

because it is waiting for the semicolon ( ; ).

If you are typing an if-statement, a for-statement, a procedure definition, or something similar, then Magma will give you a special prompt until you type end if; (etc). For instance, the prompt

function|while>

means that Magma is expecting end while; soon and will then expect end function; sometime after.

[Next] [Prev] [Right] [Left] [Up] [Index] [Root]