IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on January 29, 2006, 08:29:33 PM

Title: The compiler's tokens
Post by: Parker on January 29, 2006, 08:29:33 PM
The tokens the compiler uses aren't as you might think at first. For example, }until is considered one token although it can contain whitespace in between the } and the until.

If you want to know if X is its own token, try doing something like this:
int }until
You'll get an error "Unexpected }until" which will tell you that what you typed is a separate token. }else does the same. If you typed two separate tokens, like
int double float
you'll get two separate errors.

It's not really useful, just something I thought was interesting ;)