Add look-ahead to custom syntax parser.

This commit is contained in:
Stephen Chung
2020-12-15 19:23:30 +08:00
parent 17310ef576
commit f8c14ba1c4
4 changed files with 16 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ Breaking changes
* `Engine::on_progress` now takes `u64` instead of `&u64`.
* The closure for `Engine::on_debug` now takes an additional `Position` parameter.
* `AST::iter_functions` now returns `ScriptFnMetadata`.
* The parser function passed to `Engine::register_custom_syntax_raw` now takes an additional parameter containing the _look-ahead_ symbol.
New features
------------
@@ -34,6 +35,7 @@ Enhancements
* Capturing a constant variable in a closure is now supported, with no cloning.
* Provides position info for `debug` statements.
* A _look-ahead_ symbol is provided to custom syntax parsers, which can be used to parse variable-length symbol streams.
Version 0.19.7