Morning David, On 18/11/11 06:55, David Riddle wrote:
grammar Test;prog: ID+; ID: 'a'..'z'+; WS: '\n'+ {$channel=HIDDEN;};
I just pasted your grammer into ANTLRWorks and it seemed happy. In the interpreter I entered the following:
a bWith a real newline between them, it gave the correct output. See attached - if this list allows attachments, failing that I got:
<grammar Test> | prog | --- | | a b Are you sure you used a real newline as opposed to the two characters "/n"? Cheers, Norm. Disclaimer: I'm not a compiler writer nor do I play one on TV. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
<<attachment: TestGrammar.jpg>>
-- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.