Statements in Java.g
0 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Monday, April 4, 2005 03:04 AM

I'd like to understand why statements such as "if" and "while" are defined in java.g under the parser as a mixture of strings and lexer tokens and not the lexer?
That is, why wouldn't all keywords such as "while", "for", "if", etc. not be defined as tokens in the lexer?
Is it something to do with the lookahead?

As what kind of token (what mechanism) are these keywords passed to the parser as?

About | Sitemap | Contact