[antlr-interest] Two nested "top level" rules

swaptions adc at toolazydogs.com
Sat Apr 17 06:47:34 PDT 2004


I have two rules:

a : BEGIN b END ;

b : FOO;

and a function 

    private ASN1Parser getParser(String src) {
        ASN1Lexer lexer = new ASN1Lexer(new StringReader(src));
        return new ASN1Parser(lexer);
    }

Now, this works

getParser("FOO END").b();

This does not

getParser("FOO").b();

Here I get "unexpected token: null".  What am I doing wrong?


Regards,
Alan





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list