Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 258 lines (257 sloc) 2.106 kB
INT
ID: x
LEFT_SQUARE
NUM: 10
RIGHT_SQUARE
SEMICOLON
INT
ID: minloc
LEFT_PAREN
INT
ID: a
LEFT_SQUARE
RIGHT_SQUARE
COMMA
INT
ID: low
COMMA
INT
ID: high
RIGHT_PAREN
LEFT_CURLY
INT
ID: i
SEMICOLON
INT
ID: x
SEMICOLON
INT
ID: k
SEMICOLON
ID: k
ASSIGN
ID: low
SEMICOLON
ID: x
ASSIGN
ID: a
LEFT_SQUARE
ID: low
RIGHT_SQUARE
SEMICOLON
ID: i
ASSIGN
ID: low
PLUS
NUM: 1
SEMICOLON
WHILE
LEFT_PAREN
ID: i
LESS_THAN
ID: high
RIGHT_PAREN
LEFT_CURLY
IF
LEFT_PAREN
ID: a
LEFT_SQUARE
ID: i
RIGHT_SQUARE
LESS_THAN
ID: x
RIGHT_PAREN
LEFT_CURLY
ID: x
ASSIGN
ID: a
LEFT_SQUARE
ID: i
RIGHT_SQUARE
SEMICOLON
ID: k
ASSIGN
ID: i
SEMICOLON
RIGHT_CURLY
ID: i
ASSIGN
ID: i
PLUS
NUM: 1
SEMICOLON
RIGHT_CURLY
ID: x
ASSIGN
ID: x
PLUS
ID: k
PLUS
ID: i
MINUS
ID: i
DIVIDE
ID: x
MULTIPLY
ID: k
PLUS
ID: i
DIVIDE
ID: k
SEMICOLON
RETURN
ID: k
SEMICOLON
RIGHT_CURLY
VOID
ID: sort
LEFT_PAREN
INT
ID: a
LEFT_SQUARE
RIGHT_SQUARE
COMMA
INT
ID: low
COMMA
INT
ID: high
RIGHT_PAREN
LEFT_CURLY
INT
ID: i
SEMICOLON
INT
ID: k
SEMICOLON
ID: i
ASSIGN
ID: low
SEMICOLON
WHILE
LEFT_PAREN
ID: i
LESS_THAN
ID: high
MINUS
NUM: 1
RIGHT_PAREN
LEFT_CURLY
INT
ID: t
SEMICOLON
ID: k
ASSIGN
ID: minloc
LEFT_PAREN
ID: a
COMMA
ID: i
COMMA
ID: high
RIGHT_PAREN
SEMICOLON
ID: t
ASSIGN
ID: a
LEFT_SQUARE
ID: k
RIGHT_SQUARE
SEMICOLON
ID: a
LEFT_SQUARE
ID: k
RIGHT_SQUARE
ASSIGN
ID: a
LEFT_SQUARE
ID: i
RIGHT_SQUARE
SEMICOLON
ID: a
LEFT_SQUARE
ID: i
RIGHT_SQUARE
ASSIGN
ID: t
SEMICOLON
ID: i
ASSIGN
ID: i
PLUS
NUM: 1
SEMICOLON
RIGHT_CURLY
RIGHT_CURLY
VOID
ID: main
LEFT_PAREN
VOID
RIGHT_PAREN
LEFT_CURLY
INT
ID: i
SEMICOLON
ID: i
ASSIGN
NUM: 0
SEMICOLON
WHILE
LEFT_PAREN
ID: i
LESS_THAN
NUM: 10
RIGHT_PAREN
LEFT_CURLY
ID: x
LEFT_SQUARE
ID: i
RIGHT_SQUARE
ASSIGN
ID: input
LEFT_PAREN
RIGHT_PAREN
SEMICOLON
ID: i
ASSIGN
ID: i
PLUS
NUM: 1
SEMICOLON
RIGHT_CURLY
ID: sort
LEFT_PAREN
ID: x
COMMA
NUM: 0
COMMA
NUM: 10
RIGHT_PAREN
SEMICOLON
ID: i
ASSIGN
NUM: 0
SEMICOLON
WHILE
LEFT_PAREN
ID: i
LESS_THAN
NUM: 10
RIGHT_PAREN
LEFT_CURLY
ID: output
LEFT_PAREN
ID: x
LEFT_SQUARE
ID: i
RIGHT_SQUARE
RIGHT_PAREN
SEMICOLON
ID: i
ASSIGN
ID: i
PLUS
NUM: 1
SEMICOLON
RIGHT_CURLY
RIGHT_CURLY
Jump to Line
Something went wrong with that request. Please try again.