Skip to content
Snippets Groups Projects
Commit a3ae2d50 authored by Wilke Pierre's avatar Wilke Pierre
Browse files

new test

parent 2d949ad1
No related branches found
No related tags found
No related merge requests found
main(x){
while(x > 0){
if (x == 3){
return 12;
}
x = x - 1;
}
return -3;
}
{"output": "", "error": null, "retval": 12}
\ No newline at end of file
{"output": "", "error": null, "retval": -3}
\ No newline at end of file
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_IDENTIFIER(x)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_WHILE
SYM_LPARENTHESIS
SYM_IDENTIFIER(x)
SYM_GT
SYM_INTEGER(0)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IF
SYM_LPARENTHESIS
SYM_IDENTIFIER(x)
SYM_EQUALITY
SYM_INTEGER(3)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_RETURN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_RBRACE
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_IDENTIFIER(x)
SYM_MINUS
SYM_INTEGER(1)
SYM_SEMICOLON
SYM_RBRACE
SYM_RETURN
SYM_MINUS
SYM_INTEGER(3)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment