Fallback, inheritance, keywords
Version 0.5.0
is now published to NPM.
Highlights:
- Add keywords function
- Add fallback tokens
- Add inheritance for stateful lexers
- Add optimization for single-character tokens
- Let
type
be a function - Fix: save and restore state stack
- Rename
name
->type
when specifying rules in an array - Deprecate
Lexer.has()