Arithmetic Evaluator/Go: Difference between revisions

→‎Library: remove non-working error case
m (Both examples work with Go 1. Library example needed a small tweak to match the API.)
(→‎Library: remove non-working error case)
Line 270:
"go", // a valid keyword, not valid in an expression.
"3@7", // error message is "illegal character."
"7D3", // the parser error message is a little strange here.
"", // EOF seems a reasonable error message.
}
Line 343 ⟶ 342:
go: 1:1: expected operand, found 'go'
3@7: 1:2: illegal character U+0040 '@'
7D3: 1:2: expected 'EOF', found 'IDENT' D3
: 1:1: expected operand, found 'EOF'
</pre>
1,707

edits