[antlr-interest] C target not working?
Jim Idle
jimi at temporal-wave.com
Sun Apr 8 08:43:44 PDT 2007
You need the latest snapshot (although the group interface error can be
ignored). See the download page.
Jim
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of
sohail at taggedtype.net
Sent: Saturday, April 07, 2007 11:35 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] C target not working?
Hi, am I doing something wrong here or is the C-target borked?
Thanks.
$ cat Test.g
grammar Test;
options
{
language=C;
}
A : 'A' ;
$ export
CLASSPATH=../antlr-3.0b6/lib/antlr-2.7.7.jar:../antlr-3.0b6/lib/antlr-3.
0b6.jar:../antlr-3.0b6/lib/stringtemplate-3.0.jar
$ java org.antlr.Tool Test.g
ANTLR Parser Generator Version 3.0b6 (Jan 31, 2007) 1989-2007
error(10): internal error: group C does not satisfy interface
ANTLRCore:
missing templates [lexerRulePropertyRef_stop]
error(10): internal error: group C does not satisfy interface
ANTLRCore:
mismatched arguments on these templates [outputFile(LEXER, PARSER,
TREE_PARSER, actionScope, actions, docComment, recognizer, name, tokens,
tokenNames, rules, cyclicDFAs, bitsets, buildTemplate, buildAST,
rewrite,
profile, backtracking, synpreds, memoize, numRules, fileName,
ANTLRVersion, generatedTimestamp, trace, scopes, superClass, literals),
optional headerFile(LEXER, PARSER, TREE_PARSER, actionScope, actions,
docComment, recognizer, name, tokens, tokenNames, rules, cyclicDFAs,
bitsets, buildTemplate, buildAST, rewrite, profile, backtracking,
synpreds, memoize, numRules, fileName, ANTLRVersion, generatedTimestamp,
trace, scopes, superClass, literals), listLabel(label, elem)]
error(10): internal error: Test.g : java.util.NoSuchElementException:
no
such attribute: buildAST in template context [headerFile]
org.antlr.stringtemplate.StringTemplate.rawSetAttribute(StringTemplate.j
ava:739)
org.antlr.stringtemplate.StringTemplate.setAttribute(StringTemplate.java
:600)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:341)
org.antlr.Tool.processGrammar(Tool.java:329)
org.antlr.Tool.process(Tool.java:266)
org.antlr.Tool.main(Tool.java:69)
More information about the antlr-interest
mailing list