Hi all
I have a little problem(confused) about how to construct a semantic analyzer using sablecc for a simple grammar like:
program = main body
;
body = lbra varDecl stList rbra
;
varDecl = {varDecl} int id semi |
{noVarDecl}
;
stList =
{ReadSt} read id semi |
{Body} body |
{noSt}
;
please if some one know how to implement it , let me know , I am a newer in this group,thanks in advance.
osama
_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion