dis5 - 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 3 Continued
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 2 results Project 3 continued
Background image of page 2
Project 2 results Average score: 89.50 Everyone fulfilled the minimum needed to proceed Multiple functions Types and declarations Statements
Background image of page 3

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

View Full DocumentRight Arrow Icon
Common problems Comments integer (%%%% %% a (% b (% c something %% % ) %%%) function asd() { return 1; } (%comment2%)
Background image of page 4
Common problems Comments: \ ( \ %.* \ % \ ) integer (%%%% %% a (% b (% c something %% % ) %%%) function asd() { return 1; } (%comment2%)
Background image of page 5

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

View Full DocumentRight Arrow Icon
Common problems Comments: \(\%([^\%]*\%+[^)])*[^\%]*\%+\) integer (%%%% %% a (% b (% c something %% % ) %%%) function asd() { return 1; } (%comment2%) Idea: Starts with '(%' Followed by any number of: Anything not '%', any number of times Then a series of at least one '%' Then NOT a ')' Ending with '%)'
Background image of page 6
Common problems The return statement Not really a problem Just a statement! From project 3: Stat:Assignment ==> SymName Expr Stat:ArrayAssignment ==> SymName Expr Expr Stat:Call ==> SymName SymName *Expr Stat:ArrayCall ==> SymName Expr SymName *Expr Stat:IfNoElse ==> Expr Nested_block Stat:IfWithElse ==> Expr Nested_block Nested_block Stat:ForLoop ==> Stat Expr Stat Nested_block Stat:Return ==> Expr Stat:None ==>
Background image of page 7

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

View Full DocumentRight Arrow Icon
Project 3 Adress common questions Explain the tarball Examples
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.

This note was uploaded on 02/19/2012 for the course ENGR 361 taught by Professor Drexel during the Spring '12 term at Bloomsburg.

Page1 / 27

dis5 - 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