[antlr-interest] Calling directly nonterminals other than top symbol?

mzukowski at yci.com mzukowski at yci.com
Thu Jun 26 11:44:24 PDT 2003


It is not safe because the parser will be expecting tokens to follow that
rule that won't be there if you just pass in an incomplete program.

I recommend making a top level rule that calls only the rule you want to
expose.

Monty

-----Original Message-----
From: Hrvoje Nezic [mailto:hrvoje.nezic at envox-lab.hr] 
Sent: Thursday, June 26, 2003 5:41 AM
To: ANTLR mailing list
Subject: [antlr-interest] Calling directly nonterminals other than top
symbol?


Hi,

Is it safe to call directly methods corresponding
to nonterminals other than the top symbol of the
grammar? 




 

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


 

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




More information about the antlr-interest mailing list