Releases: dy/subscript
Releases · dy/subscript
5.0
What's Changed
- Direct lookup table instead of precedence ascend
- Precedences match MDN
- Added
operatorfunction to create any operators or tokens - Group/array are operators, not tokens
- Performance +30% (260 → 200ms)
- Size -10% (2.8 → 2.5kb)
Full Changelog: v4.0.0...v5.0.0
4.0
What's changed
- Functional parsers precedence table;
- Fast char lookup table;
- Improved performance by 25%;
- Space/comments;
- Correct ternary parser;
- Correct errors detection;
- Optimized expression parsing algorithm (merged prefix, postfix & binary);
- All JSEP tests;
Full Changelog: v3.0.0...v4.0.0
3.0
What's Changed
- Significantly increased performance (on par with jsep or faster for major cases)
- Extensible functional parsers instead of declarative configs
- Operators precedence matches JS
- Better source files layout
- Postfix operators support
- Smaller size
- Node tests
Full Changelog: v2.0.0...v3.0.0
2.0
What's Changed
- Generalized & improved performance
- Operator evaluators are separate from precedence dicts
- Streamlined expression algorithm to real recursive descent
- API is consolidated under
parse.*andevaluate.*scopes - Reduced size
Full Changelog: 1.0.4...v2.0.0
1.0
- Parser performance based on stripped JSEP engine
- Frisk-compatible tree
- 1.4kb size
Full Changelog: https://github.com/spectjs/subscript/commits/1.0.4