[antlr-interest] v3: strange debugging message in new java.g grammar

Terence Parr parrt at cs.usfca.edu
Fri Jul 21 17:51:30 PDT 2006


On Jul 20, 2006, at 2:42 PM, Dieter Frej wrote:

> Hi Ter,
>
>> By default ANTLR does not send the exceptions back out...it tries  
>> to  recover.  Override reportError and recover if you want; also  
>> can set  trycatchclause action I think it is.
> is there somewhere a list of all available grammar options and all
> availabe action stuff? That would make development easier...

Yep. *any* doc would help ;)  I'd look at Grammar.java:

	public static final Set legalOptions =
			new HashSet() {
				{
				add("language"); add("tokenVocab");
				add("output"); add("ASTLabelType");
				add("TokenLabelType");
				add("superClass");
				add("filter");
				add("k");
				add("backtrack");
				add("memoize");
				}
			};

Ter


More information about the antlr-interest mailing list