Repository navigation
v.0.19.4
Note: Timed this to USA presidential election day just for kicks...
This version basically cleans up the code structure in preparation for a potential 1.0 release in the future.
Most scripts should see a material speed increase.
This version also adds a low-level API for more flexibility when defining custom syntax.
Version 0.19.4 released to crates.io.
Bug fixes
- Fixes
Send + SyncforEvalAltResultunder thesyncfeature. Bug introduced with0.19.3.
Breaking changes
- Custom syntax can no longer start with a keyword (even a reserved one), even if it has been disabled. That is to avoid breaking scripts later when the keyword is no longer disabled.
Changes to Error Handling
EvalAltResult::ErrorAssignmentToUnknownLHSis moved toParseError::AssignmentToInvalidLHS.ParseError::AssignmentToCopyis removed.EvalAltResult::ErrorDataTooLargeis simplified.Engine::on_progressclosure signature now returnsOption<Dynamic>with the termination value passed on toEvalAltResult::ErrorTerminated.ParseErrorType::BadInputnow wraps aLexErrorinstead of a text string.
New features
f32_floatfeature to setFLOATtof32.- Low-level API for custom syntax allowing more flexibility in designing the syntax.
Module::fill_withto poly-fill a module with another.- Scripts terminated via
Engine::on_progresscan now pass on a value as a termination token.
Enhancements
- Essential AST structures like
ExprandStmtare packed into smaller sizes (16 bytes and 32 bytes on 64-bit), stored inline for more cache friendliness, and de-Boxed as much as possible. Scopeis optimized for cache friendliness.