[antlr-interest] problems with C runtime and output=template
Richard Lewis
Richard.Lewis at razor-risk.com
Sun Mar 1 22:27:07 PST 2009
Hi,
I found out from the WIKI that RewriteTokenStream is not implemented
yet. Is this related to string template rewriting not being available?
If so, when will this be implemented since it's a roadblock for me.
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Richard Lewis
Sent: Monday, 2 March 2009 5:05 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] problems with C runtime and output=template
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/eda27863/attachment.html
More information about the antlr-interest
mailing list