June 26, 2024, 01:10:10 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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