dis1 - 10/6/10 CMPSC 160 Translation of Programming...

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

View Full Document Right Arrow Icon
10/6/10 1 CMPSC 160 Translation of Programming Languages Project 1: Calculator Introduction Teaching Assistant: Yutian Sun sun@cs.ucsb.edu (805) 886-5382 Office hours: Mon Wed 2:00 – 3:00 @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%) Enviornment Linux C/C++ GraphViz, Lex and Yacc
Background image of page 1

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

View Full DocumentRight Arrow Icon
10/6/10 2 Project 1: Calculator Goals of this project to learn how to write a simple parser to develop a simple calculator Output Parse tree Errors Result of calculation (extra credit) Input Command line or file [Expression Period]* Code Package tarball makefile calc.cpp (main and the only code file) calc.def.l (lex file, just for ref) calc.def.y (yacc file, just for ref) test.good.calc (simple test case, good one) test.bad.calc (simple test case, bad one)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/23/2010 for the course MATH 104b taught by Professor Ceniceros,h during the Spring '08 term at UCSB.

Page1 / 6

dis1 - 10/6/10 CMPSC 160 Translation of Programming...

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

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