| Gentee Programming Language > Documentation > Syntax | Download documentation |
While tokens are read, the compiler does front-end processing on a text, i.e some characters are substituted and comments are ignored.
/*...*/ Comments can appear anywhere. A comment begins with a forward slash/asterisk combination /* and is terminated by “end comment” delimiter */. //... Single-line comments. These comments are terminated by the End-of-Line characters. ; is replaced with the End-of-Line characters. : is replaced with the first left brace, but the first End-of-Line characters, which follow a colon, are replaced with the closing right brace. $name a macro name with a dollar sign $ is replaced with its value.
/*
This is a comment.
*/
// This is a comment too.
a = b + c; c = d + e
//after processing it looks like this:
a = b + c
c = d + e
if a == 10 : a++
//after processing it looks like this:
if a == 10 { a++ }See also
Copyright © 2004-2006 Gentee Inc. All rights reserved. |