[antlr-interest] table rows

Jason Wood jasonw at justuni.org
Mon Feb 6 14:12:17 PST 2006


Hello again, I think I am picking this up pretty quick ;)

I have a table that contains rows that need to be in a specific order. For
example:

column1 column2 column3
A       name    john doe
B       address 1600 Penn. Ave.
C       phone   123-456-7890

So by the specification I have been given, A must come before B and C. and
A,B,C must be present. Now I have written a lexer rule for each because I
thought this was the only way to tell antlr that order matters, but I
thought I would get some opinions on it.

Thanks for any help :)
J



More information about the antlr-interest mailing list