Skip to content

apollo-parser@0.6.0

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 18 Aug 11:58
· 492 commits to main since this release
4c7b1a2

Features

  • zero-alloc lexer - allancalix, pull/322
    Rewrites the lexer to avoid allocating for each token. Synthetic benchmarks
    show about a 25% performance improvement to the parser as a whole.

Fixes

  • fix token limit edge case - goto-bus-stop, pull/619, issue/610
    token_limit now includes the EOF token. In the past you could get
    token_limit + 1 tokens out of the lexer if the token at the limit was the
    EOF token, but now it really always stops at token_limit.

  • create EOF token with empty data - allancalix, pull/591
    Makes consuming the token stream's data produce an identical string to the
    original input of the lexer.