A RainCode script is just a source file. White space and line breaks are not considered significant, and can be added at will between tokens to improve style and readability. Such white space cannot be inserted within a token.
RainCode's string literal can be enclosed within single or double quotes. A string literal cannot include its quote character.
'Darius' "Let's take a walk on the wild side" 'Let's take a walk on the wild side' -- Invalid
Comments are denoted by a double dash ``--'', and go
till the end of the current line. They are ignored.
In order to be more compatible with Unix conventions,
RainCode also considers the sequence #!
as starting a comment that goes until the end of the
current line. However, unlike many Unix utilities, the single
cardinal character # does not start a comment.
RainCode is case-dependant, that is, an identifier named ``MyVar'' is considered to be different from an identifier named ``MYVAR''. The main reason behind this motto is the fact that RainCode will go under a lot of changes in the coming months, as the very idea of a scripting language for parse tree analysis is rather new. We strongly suggest that all the identifiers you define always include at least one lowercase character. Hence, since all RainCode's reserved words available today or to be defined in the future are only made of uppercase characters, no conflict can arise.