Unformatted text preview: Change the grammar to E -> E + T | E T -> T * F | F F -> (E) | integer- make executables for the above version; do you need to change calc1.l?- make calc3.exe Sources On-line resource: http://www.lugbe.ch/action/reports/lex_yacc.pdf (Tom Niemann tutorial on Lex and Yacc) http://www.epaperpress.com/lexandyacc/index.html Programming Assignment PA2a Play with the code from the above Web pages. Write three programs in the language described in the above tutorial. Show the syntax-trees and the code for your sample programs. One of the programs should compute the number of combinations C(n,k) using an iterative algorithm....
View Full Document
- Fall '09
- Computer program, Tom Niemann, JWJ Pre-class notes