Assignment-1/example_output/p3.out

53 lines
551 B
Plaintext
Raw Permalink Normal View History

DEF def
IDENTIFIER foo
LPAREN (
IDENTIFIER a
COMMA ,
IDENTIFIER b
COMMA ,
IDENTIFIER c
RPAREN )
COLON :
NEWLINE
INDENT
IDENTIFIER x
ASSIGN =
IDENTIFIER a
TIMES *
IDENTIFIER b
NEWLINE
IDENTIFIER y
ASSIGN =
IDENTIFIER x
DIVIDEDBY /
IDENTIFIER c
NEWLINE
IDENTIFIER z
ASSIGN =
IDENTIFIER y
TIMES *
IDENTIFIER y
NEWLINE
RETURN return
IDENTIFIER z
NEWLINE
DEDENT
IDENTIFIER foo
LPAREN (
INTEGER 1
COMMA ,
INTEGER 2
COMMA ,
INTEGER 3
RPAREN )
NEWLINE
IDENTIFIER foo
LPAREN (
FLOAT 1
COMMA ,
FLOAT 2
COMMA ,
FLOAT 3
RPAREN )
NEWLINE