You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lexer already knows the operators and could directly determine the corresponding (Node) Op and operator precedence. This would eliminate a map lookup when parsing binary expressions, which is an extremely frequent operation.
Target 1.7 Early.
The text was updated successfully, but these errors were encountered:
The parser code was not reachable ever since some of the lexer cleanups.
We could recognize '~' in the lexer, complain, and return a '^' instead,
but it's been a few years since Go was new and this may have been a use-
ful error. The lexer complains with "illegal character U+007E '~'" which
is good enough.
For golang#13244.
Change-Id: Ie3283738486eb6f8462d594f2728ac98333c0520
Reviewed-on: https://go-review.googlesource.com/20768
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Tracking issue.
The lexer already knows the operators and could directly determine the corresponding (Node) Op and operator precedence. This would eliminate a map lookup when parsing binary expressions, which is an extremely frequent operation.
Target 1.7 Early.
The text was updated successfully, but these errors were encountered: