This preview shows page 1. Sign up to view the full content.
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
This document was uploaded on 12/14/2010.
- Fall '09