Skip to content

Commit

Permalink
various improvements to parser (#22161)
Browse files Browse the repository at this point in the history
- move call to `short-form-function-loc` inside `parse-assignment`
  this is faster and fixes nested cases like `f(x)=g(x)=1`
- fix a case where an `unexpected "foo"` message was missing quotes

- optimize common case of arglists of comma-separated simple tokens
- some other small optimizations

- put code back in precedence order
- separate parse-Nary and parse-comma so they're easier to read
- cleaner code for parse-unary and parse-factor
  • Loading branch information
JeffBezanson authored and ararslan committed Sep 14, 2017
1 parent 88fa433 commit e4dc00c
Showing 1 changed file with 279 additions and 263 deletions.
Loading

0 comments on commit e4dc00c

Please sign in to comment.