June 16, 2024, 07:48:14 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


The compiler's tokens

Started by Parker, January 29, 2006, 08:29:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

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 ;)