[antlr-interest] Grammer Help

lawchangyen1978 lawchang at comp.nus.edu.sg
Sun Jul 14 01:32:06 PDT 2002


Hi.

I need to create a grammer for the structure.

comment : one;two;three;;
comment : one;;
comment : ;;

It starts with a comment and ends with ";;". It can be a list in 
between with ';' as a delimiter or just a list with one element or a 
list with no elements.

I think syntatic predicates may help but i am really new in this and 
i have no idea how to write a simple syntatic predicate to help me 
solve this question. I would appreciate all help and advice. Thank 
you very much.





 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list