Skip to content

v0.6.0

Compare
Choose a tag to compare
@alllex alllex released this 07 Oct 21:52
· 30 commits to main since this release
7be1fa4

New

  • Parsus uses a new "scannerless" parsing approach to avoid token declaration order problems
    • The tokens can be declared in any order now!
    • However, this could be breaking and require reordering alternatives in the parsers like p1 or p2 or p3
  • Explicit parsing of ignored tokens is now possible.
    • This can be handy, for instance, to enforce whitespace between certain things.
  • Unmatched-token errors are now user-friendly
    • They include a section of the input to pinpoint problems faster, and also previously matched token for context

Deprecated

  • Using currentToken is deprecated, because it will always be null due to avoidance of the eager tokenization in the "scannerless" approach.