3 - <program> Reserved Word: class...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: <program> Reserved Word: class IDENTIFIER: CS316ex3 [not in symbol table] { <dataFieldDecl> Reserved Word: static <varDecl> Reserved Word: int <singleVarDecl> IDENTIFIER: x [not in symbol table] ... node has no more children ; ... node has no more children ... node has no more children <dataFieldDecl> Reserved Word: static <varDecl> Reserved Word: int <singleVarDecl> IDENTIFIER: y [not in symbol table] ... node has no more children ; ... node has no more children ... node has no more children <mainDecl> Reserved Word: public Reserved Word: static Reserved Word: void Reserved Word: main ( Reserved Word: String IDENTIFIER: args [not in symbol table] [ ] ) *** Generating: 0: INITSTKFRM ? <compoundStmt> { <statement> <outputStmt> Reserved Word: System . Reserved Word: out . Reserved Word: println ( <printArgument> *** Generating: 1: WRITESTRING 2 8 CHARACTER STRING LITERAL: "Testing" ... node has no more children ) ; *** Generating: 2: WRITELNOP ... node has no more children ... node has no more children <statement> <whileStmt> Reserved Word: while ( <expr7> <expr6> <expr5> <expr4> <expr3> <expr2> <expr1> IDENTIFIER: x [static var (address = 0)] *** Generating: 3: PUSHSTATADDR *** Generating: 4: LOADFROMADDR ... node has no more children ... node has no more children ... node has no more children <= <expr3> <expr2> <expr1> *** Generating: 5: PUSHNUM 2 UNSIGNED INTEGER LITERAL: 2 ... node has no more children ... node has no more children ... node has no more children *** Generating: 6: LE ... node has no more children ... node has no more children ... node has no more children ... node has no more children ) *** Generating: 7: JUMPONFALSE ? <statement> <compoundStmt> { <statement> <assignmentOrInvoc> IDENTIFIER: y [static var (address = 1)] *** Generating: 8: PUSHSTATADDR 1 = <expr3> <expr2> <expr1> *** Generating: 9: PUSHNUM UNSIGNED INTEGER LITERAL: 0 ... node has no more children ... node has no more children ... node has no more children *** Generating: 10: SAVETOADDR ; ... node has no more children ... node has no more children <statement> <whileStmt> Reserved Word: while ( <expr7> <expr6> <expr5> <expr4> <expr3> <expr2> <expr1> IDENTIFIER: y [static var (address = 1)] *** Generating: 11: PUSHSTATADDR 1 *** Generating: 12: LOADFROMADDR ... node has no more children ... node has no more children ... node has no more children <= <expr3> <expr2> <expr1> *** Generating: 13: PUSHNUM 2 UNSIGNED INTEGER LITERAL: 2 ... node has no more children ... node has no more children ... node has no more children *** Generating: 14: LE ... node has no more children ... node has no more children ... node has no more children ... node has no more children ) *** Generating: 15: JUMPONFALSE ?...
View Full Document

Page1 / 37

3 - <program> Reserved Word: class...

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

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