On Apr 17, 2011, at 8:56 AM, Jason Doege wrote:
> On a related note, it looks to me that when you have something like:
> 
> kreturn : 'return' ws?;
> 
> that the lexer is automatically created with a lexical element 'return' 
> whereas my initial expectation is that 'return' would only be tested for 
> existence at that particular point in the parsing process. I think 
> limiting the parser to only considering the rule at hand is crucial to 
> obtaining the flexibility implied by a scanner-less parser generator.

That's correct. when you see a reference to kreturn it goes off to parse it. 
The only tricky part comes in when you need to distinguish between keywords and 
identifiers.

Ter

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to