Description: Experiment II: TINY extension language syntax analysis of the expansion of grammar rules: to achieve the while, do while, for statement and the remainder calculation formulas, specific grammar rules to construct their own. Reference: P97 and P136 grammar rules. (1) While-stmt-> while exp do stmt-sequence endwhile (2) Dowhile-stmt-> do stmt-sequence while exp (3) for-stmt-> for identifier: = simple-exp to simple- exp do stmt-sequence enddo increments of 1 (4) for-stmt-> for identifier: = simple-exp downto simple-exp do stmt-sequence enddo variety step decrement by the user to choose whether to generate a syntax tree, and view generated syntax tree.
To Search:
File list (Check if you may need any files):
lab2\analyze.c
....\analyze.h
....\cgen.c
....\cgen.h
....\code.c
....\code.h
....\Debug\analyze.obj
....\.....\analyze.sbr
....\.....\cgen.obj
....\.....\cgen.sbr
....\.....\code.obj
....\.....\code.sbr
....\.....\lab2.bsc
....\.....\lab2.exe
....\.....\lab2.ilk
....\.....\lab2.pch
....\.....\lab2.pdb
....\.....\main.obj
....\.....\main.sbr
....\.....\parse.obj
....\.....\parse.sbr
....\.....\r.tm
....\.....\r.tny
....\.....\sample.tny
....\.....\scan.obj
....\.....\scan.sbr
....\.....\symtab.obj
....\.....\symtab.sbr
....\.....\util.obj
....\.....\util.sbr
....\.....\vc60.idb
....\.....\vc60.pdb
....\globals.h
....\lab2.dsp
....\lab2.dsw
....\lab2.ncb
....\lab2.opt
....\lab2.plg
....\main.c
....\parse.c
....\parse.cpp
....\parse.h
....\sample.tm
....\sample.tny
....\scan.c
....\scan.h
....\symtab.c
....\symtab.h
....\util.c
....\util.h
....\Debug
lab2