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 Jun 5, 2017
1 parent 9f61fda commit aab564a
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 266 deletions.
Loading

0 comments on commit aab564a

Please sign in to comment.