Hi,

I'm fairly new too, so there might be better ways to do this. From
your description I assume that you're not interested in the
separators, but they may change over time. This is what I came up with
playing a little in ANTLRWorks:
-----------------
grammar Foo;

infoSequence    : info+;
info            : ID NUMBER ID ID NUMBER;

NUMBER          : DIGIT+;
ID              : LETTER+;
WS              : '\n' { $channel=HIDDEN; };
S               : ~(LETTER|DIGIT|WS) { $channel=HIDDEN; };

fragment LETTER : ('a'..'z'|'A'..'Z');
fragment DIGIT  : ('0'..'9');
-----------------

Hope that helps some way :)

Matt


--~--~---------~--~----~------------~-------~--~----~
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