PASS "odd" becomes "2n+1" | |
PASS "even" becomes "2n" | |
PASS "1" becomes "1" | |
PASS "+1" becomes "1" | |
PASS "-1" becomes "-1" | |
PASS "5n" becomes "5n" | |
PASS "5N" becomes "5n" | |
PASS "+n" becomes "n" | |
PASS "n" becomes "n" | |
PASS "N" becomes "n" | |
PASS "+ n" becomes "parse error" | |
PASS "-n" becomes "-n" | |
PASS "-N" becomes "-n" | |
PASS "5n-5" becomes "5n-5" | |
PASS "+n-5" becomes "n-5" | |
PASS "n-5" becomes "n-5" | |
PASS "+ n-5" becomes "parse error" | |
PASS "-n-5" becomes "-n-5" | |
PASS "5n +5" becomes "5n+5" | |
PASS "5n -5" becomes "5n-5" | |
PASS "+n +5" becomes "n+5" | |
PASS "n +5" becomes "n+5" | |
PASS "+n -5" becomes "n-5" | |
PASS "+ n +5" becomes "parse error" | |
PASS "n 5" becomes "parse error" | |
PASS "-n +5" becomes "-n+5" | |
PASS "-n -5" becomes "-n-5" | |
PASS "-n 5" becomes "parse error" | |
PASS "5n- 5" becomes "5n-5" | |
PASS "5n- -5" becomes "parse error" | |
PASS "5n- +5" becomes "parse error" | |
PASS "-5n- 5" becomes "-5n-5" | |
PASS "+n- 5" becomes "n-5" | |
PASS "n- 5" becomes "n-5" | |
PASS "+ n- 5" becomes "parse error" | |
PASS "n- +5" becomes "parse error" | |
PASS "n- -5" becomes "parse error" | |
PASS "-n- 5" becomes "-n-5" | |
PASS "-n- +5" becomes "parse error" | |
PASS "-n- -5" becomes "parse error" | |
PASS "5n + 5" becomes "5n+5" | |
PASS "5n - 5" becomes "5n-5" | |
PASS "5n + +5" becomes "parse error" | |
PASS "5n + -5" becomes "parse error" | |
PASS "5n - +5" becomes "parse error" | |
PASS "5n - -5" becomes "parse error" | |
PASS "+n + 5" becomes "n+5" | |
PASS "n + 5" becomes "n+5" | |
PASS "+ n + 5" becomes "parse error" | |
PASS "+n - 5" becomes "n-5" | |
PASS "+n + +5" becomes "parse error" | |
PASS "+n + -5" becomes "parse error" | |
PASS "+n - +5" becomes "parse error" | |
PASS "+n - -5" becomes "parse error" | |
PASS "-n + 5" becomes "-n+5" | |
PASS "-n - 5" becomes "-n-5" | |
PASS "-n + +5" becomes "parse error" | |
PASS "-n + -5" becomes "parse error" | |
PASS "-n - +5" becomes "parse error" | |
PASS "-n - -5" becomes "parse error" | |
PASS "1 - n" becomes "parse error" | |
PASS "0 - n" becomes "parse error" | |
PASS "-1 + n" becomes "parse error" | |
PASS "2 n + 2" becomes "parse error" | |
PASS "- 2n" becomes "parse error" | |
PASS "+ 2n" becomes "parse error" | |
PASS "+2 n" becomes "parse error" | |