tests:
FAIL Input: (((((2+2)*2+2)*2+2)*2+2)*2
Expected: "Unexpected token '('"
Yours: "Unexpected end of input"
FAIL Input: 1+
Expected: "Unexpected end of file"
Yours: "Unexpected end of input"
FAIL Input:
Expected: "0"
Yours: "Unexpected end of input"
FAIL Input: 1++2
Expected: "3"
Yours: "Unexpected token '+'"
FAIL Input: 1**2
Expected: "0"
Yours: "Unexpected token '*'"
FAIL Input: 1+2*
Expected: "Unexpected end of file"
Yours: "Unexpected end of input"
FAIL Input: (1+2)
Expected: "2"
Yours: "Unexpected token ''"
FAIL Input: 1+2)(
Expected: "3"
Yours: "Unexpected token ')'"
FAIL Input: ((1+2)*3
Expected: "Unexpected token '('"
Yours: "Unexpected end of input"
tests:
FAIL Input: (((((2+2)*2+2)*2+2)*2+2)*2
Expected: "Unexpected token '('"
Yours: "Unexpected end of input"
FAIL Input: 1+
Expected: "Unexpected end of file"
Yours: "Unexpected end of input"
FAIL Input:
Expected: "0"
Yours: "Unexpected end of input"
FAIL Input: 1++2
Expected: "3"
Yours: "Unexpected token '+'"
FAIL Input: 1**2
Expected: "0"
Yours: "Unexpected token '*'"
FAIL Input: 1+2*
Expected: "Unexpected end of file"
Yours: "Unexpected end of input"
FAIL Input: (1+2)
Expected: "2"
Yours: "Unexpected token ''"
FAIL Input: 1+2)(
Expected: "3"
Yours: "Unexpected token ')'"
FAIL Input: ((1+2)*3
Expected: "Unexpected token '('"
Yours: "Unexpected end of input"