[antlr-interest] problems with C runtime and output=template
Richard Lewis
Richard.Lewis at razor-risk.com
Sun Mar 1 22:04:55 PST 2009
Hi,
I'm trying to convert my tree grammar from JAVA to C and running into
issue with code generation. I'm targeting string templates as the output
type and run into the following error:
1>Translating to tree parser.
1> : error 10 : internal error: no such group file ST.stg
1>Project : error PRJ0019: A tool returned an error code from
"Translating to tree parser."
Are string template outputs supported in the C code generator? I can't
find a corresponding ST.stg in the codegen/templates/C
Specifying C - Runtime:
tree grammar RazorTree;
options{
language = C;
tokenVocab = Razor;
ASTLabelType = pANTLR3_BASE_TREE;
output = template;
}
Original JAVA - Runtime:
options{
tokenVocab = Razor;
ASTLabelType = CommonTree;
output = template;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090302/88543c67/attachment.html
More information about the antlr-interest
mailing list