dis3 - CMPSC 160 Translation of Programming Languages...

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

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

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

View Full DocumentRight Arrow Icon
Plan for today Project 1 Results Playtime with Lex & Yacc
Background image of page 2
Project 1 Results Did everyone get an email?
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 Results Common problems: The Grammar – List Scanner – Character Pushback Integer Range Interesting testcases: “” “000000000000000001” “000000000000000000”?
Background image of page 4
Project 2 – Additional notes Follow the specs You will lose points for having incorrect output Tested using incremental test cases Solve the problem in increasing order of generality: Functions Statements
Background image of page 5

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

View Full DocumentRight Arrow Icon
Project 2 – Additional notes After reporting an error, just exit! This requires modifying the yyerror function. This trace will be used by the tester
Background image of page 6
Lex and Yacc Playtime Initial files: Modify to use tokens Handling newlines, spaces
Background image of page 7

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

View Full DocumentRight Arrow Icon
Let's create Simple functions! For now, assume there can be no parameters and
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

dis3 - CMPSC 160 Translation of Programming Languages...

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

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