dis1 - CMPSC 160 Translation of Programming Languages...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CMPSC 160 Translation of Programming Languages Project 1: Calculator
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Quick recap Teaching Assistant: Ivan Bocic [email protected] Office hours: Mon Wed 13h-14h, Phelps 1413 There will be 5 projects in this class: Calculator (10%) Lexical and Syntax Analysis (20%) Abstract Syntax Tree (20%) Type Checking and Semantic Analysis (30%) Code Generation (20%) Environment: Linux C/C++ Lex, Yacc and GraphViz
Background image of page 2
Plan for today Talk about the potential issues with the 1 st project
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project 1: Calculator Goals of this project: To learn how to write a simple parser To develop a simple calculator Input: Command line or file Output: Parse tree Errors
Background image of page 4
Code Package tarball makefile calc.cpp (the only thing you need to deal with) calc.def.l (lex file, to use as a reference) calc.def.y (yacc file, to use as a reference) test.good.calc (a correct test case) test.bad.calc (an incorrect test case)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 23

dis1 - CMPSC 160 Translation of Programming Languages...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online