Hi all,

Now, I know that there's no difference between the rule one wants to be 
start rule and any other - you can call any of them as a function to 
parse a token stream.

However, it's usual to put EOF at the end of the start rule, so it makes 
sure it matches the whole file. However, I'm doing some delayed parsing 
of certain constructs (as detectable context cannot determine manner of 
parsing, but using ANTLR should be easier than hand-coding a parser for 
these token sequences), and I store a list of tokens and have written a 
wrapper to make them a token stream. However, the rules I'll pass them 
to won't match EOF.

It strikes me that all I need to do is make the token stream wrapper 
*not* return an EOF. However, the docs seem to specify that it *should* 
return an EOF. How, practically or ideally, should I resolve this?

-- 
Sam Barnett-Cormack

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