Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [3.0.0](v2.2.5...v3.0.0) (2022-04-19) ### Bug Fixes * **Lexer:** use new lexer interface ([03ed15e](03ed15e)) ### Features * Lexer has a readonly state ([13ec065](13ec065)) ### BREAKING CHANGES * the advance function of the lexer does not change the internal state of the object, but does instead return a new Lexer object. The getters `token()`, `peek()` and `previous()` have been replaced with readonly properties `current`, `next`, `previous`. * the API of the Parser class has changed. It can't parse multiple expressions anymore, but needs to be instantiated for each expression. The expression is passed to the constructor. The current lexer can be accessed via the property `lexer`.
- Loading branch information