[antlr-interest] question on simple grammar for tick format to
decimal conversion
Micheal J
open.zone at virgin.net
Wed Nov 30 20:56:26 PST 2005
> Can you please tell me more about the Fancy option - are you
> saying that I need to implement a TokenStream which will do
> this toggling after hitting the MINUS ?
Yes. After seeing a NUM MINUS sequence you may set a flag then if the next
token is NUM break up into digits.
And then use it in your code.
- You create your lexer.
- Create the filter TokenStream to reads from your lexer.
- Create the parser to read from your filter.
- Use parser.
Cheers,
Micheal
More information about the antlr-interest
mailing list