[antlr-interest] sematic analysis ?
venkat medhaj
hvmedhaj at gmail.com
Fri Mar 19 09:46:39 PDT 2010
Hi,
I am kinda new to antlr and I wonder how to perform symantic analysis using
the tool. I was able to generate the AST output for a small grammar and now
I want to check for the type check errors. For ex: if I have a statement
that looks something like
int a + b , I just have to make sure that both are of type int.
or if I define a twice in my input, then thats a redefine error. Can some
one give me some insight into this ?
Thanks,
-Venkat.
More information about the antlr-interest
mailing list