Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.
Changes:
unsafe-eval
Content-Security-Policy warnings, thanks to @jsharkey13 in #173reset()
relating to queuedText
, thanks to @hikerpig in #169Documentation tweaks:
pop: 1
, thanks to @evanpurkhiser in #140Full Changelog: https://github.com/no-context/moo/compare/v0.5.1...v0.5.2
Published v0.5.1 to NPM.
formatError
without a tokeninclude
is usedVersion 0.5.0
is now published to NPM.
Highlights:
type
be a functionname
-> type
when specifying rules in an arrayLexer.has()
Breaking changes:
slice()
yourself, or use the value
transform.{pop: 1}
will now throw an error; use {pop: true}
.size
property has been removed. Use text.length
instead.state
in save()I just published v0.2 to NPM:
clone()
index()
& remaining()