mnbujold / c415-compiler

Fall 2012 CMPUT 415 Compiler Course
0 stars 3 forks source link

invalid function declaration is not added to symbol table #22

Closed dchui1 closed 11 years ago

dchui1 commented 11 years ago

Source: 1.pal

compiler complains that function nowork is undefined, because the function declaration was screwed up. We need to add nowork to symbol table anyways, and flag it as being invalid

James-Osgood commented 11 years ago

Added some grammar rules and other type checking to fix this.