[antlr-interest] Semantic Analysis Post Parse?
Steve McFarlin
smcfarlin at ocsnet.net
Wed Nov 11 12:45:49 PST 2009
Hello,
I have been reading these forms for a short time. There seems to be
consensus amongst some users that semantic analysis should not be done
in the parser, but rather in a tree or other data structure. I am
completing the final phase of a compiler for a compiler class. As of
now I have the embedded tree grammars in my parser file. I was just
about to start doing inherited and synthesized attributes in order to
do semantic analysis on types etc... Is it advisable to do this in a
tree grammar?
Thanks,
Steve McFarlin
More information about the antlr-interest
mailing list