analyze()
, you have to do 2 things:
type
of the Exp and do the type checking when necessary (Semantic Analysis)
temp
by calling newTemp()
gen()
, you will have to use temp
somehow.
$ compile Trivial.java > trival.cc $ g++ trival.cc -o trival $ trival 123