I tried to use the -trace command line option to ANTLR 3.2 and found
that the resulting Lexer.c and Parser.c files don't compile due to
missing arguments or missing references. After looking at the C.stg
template file that produces the tracing lines, I came up with the
following patch that I think will correct the problem.
This patch should be applied to the:
tool/src/main/resources/org/antlr/codegen/templates/C/C.stg
file for ANTLR 3.2. If this is the wrong place, or the wrong fix for
this problem, I apologize, but by applying the fixed ANTLR3_PRINTFs
directly into actions in my grammar, has helped me see some trace output
and helped me debug my current grammar.
If this has already been fixed in ANTLR 3.3 or ANTLR 3.4, I also
apologize, but I'm currently running on Fedora 14, and the last
pre-packaged version of the ANTLR RPMs is 3.2:
antlr3-C-devel-3.2-11.fc14.x86_64
antlr3-C-docs-3.2-11.fc14.noarch
antlr3-javascript-3.1-11.fc14.noarch
antlr3-python-3.1.2-11.fc14.noarch
antlr3-tool-3.2-11.fc14.noarch
antlr3-java-3.2-11.fc14.noarch
antlr3-gunit-3.2-11.fc14.noarch
antlr3-C-3.2-11.fc14.x86_64
--
Kevin J. Cummings
[email protected]
[email protected]
[email protected]
Registered Linux User #1232 (http://counter.li.org)
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.