[antlr-interest] Pushing Characters onto the InputBuffer

Jason jasonriz at yahoo.com
Mon Mar 1 10:08:07 PST 2004


Ric,

Thanks for taking the time to respond.
 
> I trust you mean lex or flex?

Yup.  I've had way too much coffee this morning; of
course I meant flex.
 
> No. And it's not advisable to do so unless you
> really really really really
> know what you're doing. You'll very likely to break
> the use of syntactic
> predicates (if you use them). Line/column counting
> might also be broken.
> I'm not saying it might not be possible to do though
> but it would require
> some serious debugging/testing, I would not be
> surprised if it might be
> impossible in some cases. It really sounds like you
> want to use syntactic
> predicates (e.g. guessing mode).

Yeah, I've had a closer look at the code since I
posted this morning and I realize now that there are
side affects I hadn't anticipated.  The line/column
stuff (a) seems easy enough to fix and (b) isn't very
important to me anyway, but the syntactic predicate
stuff is a different issue.  I don't use it currently
but I definitely want to keep that avenue open so I'm
probably going to ditch the 'roll your own' approach
and rework my grammar with predicates.  Thanks again
for your input.

-jason

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list