CS351L - Fall 2011

Large Program Design Lab


John Donahue

Email: jdonahue@unm.edu

Turning in work: use the turnin script

Office: FEC 126

Office Hours:

Monday 2-3pm

Wednesday 1 - 2pm


Not Another Infix Calculator

November 14th, 2011

Background

Oh yes, another infix calculator. Don't worry, this time it should be easy. You have already learned a thing or two about lexing and parsing. As a matter of fact you should already have a general lexer and parser on hand. Modify that code to create a parse tree. You are provided with some code to help you get started creating a parse tree. Have your program take a line from standard in and return the results of that arithmetic expression

Parser Lab writeup.

Parse Tree code.

Grading

For full credit, turn in a command line calculator..