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

Comments and Continuation

//
One-line comment: any text following the double slash on the same line will be ignored by Magma.
/* */
Multi-line comment: any text between /* and */ is ignored by Magma.
\
Line continuation character: this symbol and the <return> immediately following is ignored by Magma. Evaluation will continue on the next line without interruption. This is useful for long input lines.

Example State_Various (H1E19)


> // The following produces an error:
> x := 12
> 34; User error: bad syntax > /* but this is correct > and reads two lines: */ > x := 12\ > 34; > x; 1234

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

Version: V2.19 of Mon Dec 17 14:40:36 EST 2012