[antlr-interest] Re: Positioning input stream (was EOL
sequence)
Robert Colquhoun
rjc at trump.net.au
Thu Dec 18 01:48:37 PST 2003
Hello,
Sorry i have not been following every post because of christmas, but to
force the right match have you tried something like this in the lexer:
EOL : ({ LA(1) == '\r' && LA(2) == '\n' }? "\r\n"
| '\r'
| '\n')
;
Because you are reading your own input file the solution might be more
complicated if your input is unlexable by your postscript lexer.
- Robert
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