Releases: NomicFoundation/slang
v0.11.0
Minor Changes
-
#625
7bb650b
Thanks @Xanewok! - The CST Cursor now implements the Iterator trait as part of the Rust API -
#647
b1dced3
Thanks @OmarTawfik! - Require specifying an initial offset when creating a CST cursor.
Patch Changes
-
#648
2327bf5
Thanks @OmarTawfik! - Support Solidity v0.8.22. -
#623
80114a8
Thanks @AntonyBlakey! - Correct the types in the TS api by adding the correct namespaces to type references
v0.10.1
Patch Changes
- #615
06cbbe8
Thanks @AntonyBlakey! -cursor
method is now exposed in Typescript API
v0.10.0
Minor Changes
-
#595
1a258c4
Thanks @Xanewok! - Attempt error recovery when parsing incomplete lists -
#564
e326a06
Thanks @AntonyBlakey! - Parsing operators with missing operands should no longer panic -
#564
e326a06
Thanks @AntonyBlakey! - Inline parse rules are no longer exposed to the API. -
#564
e326a06
Thanks @AntonyBlakey! - Scanners are no longer available as methods - use next_token instead -
#564
e326a06
Thanks @AntonyBlakey! - Scanners are now grouped into contexts to deal with contextual scanning
Patch Changes
-
#601
cbd2a79
Thanks @Xanewok! - Attempt parser error recovery between bracket delimiters -
#599
4bbad48
Thanks @Xanewok! - Use correct versions for therevert
andglobal
keywords -
#561
cb6a138
Thanks @Xanewok! - Add preliminary documentation for thesolidity_language
Rust package -
#603
be59a10
Thanks @OmarTawfik! - upgrade to rust 1.72.0
v0.9.0
0.9.0
Minor Changes
-
#540
0d04f95
Thanks @AntonyBlakey! - Add a Rust Cursor API and refactor the Rust Visitor API to run on top of it. -
#540
0d04f95
Thanks @AntonyBlakey! - Move Visitor et al to node:: namespace, which is where Cursor is. -
#540
0d04f95
Thanks @AntonyBlakey! - Renamerange
functions that return a TextRange totext_range
Patch Changes
-
#543
7a34599
Thanks @OmarTawfik! - Movesyntax::parser::ProductionKind
tosyntax::nodes
namespace. -
#540
0d04f95
Thanks @AntonyBlakey! - Add TokenNode.text to the TS API. -
#540
0d04f95
Thanks @AntonyBlakey! - Add first pass of Typescript binding to the Cursor API, but no TS Visitor yet. -
#545
e73658a
Thanks @OmarTawfik! - render EBNF grammar on top of eachProductionKind
,RuleKind
, andTokenKind
. -
#558
95bbc50
Thanks @OmarTawfik! - Correct versioning forSourceUnitMember
andContractMember
children.
v0.8.0
0.8.0
Minor Changes
- #513
7e01250
Thanks @AntonyBlakey! - Typescript API now has TextIndex and TextRange types that are returned from the appropriate methods rather than tuples.
Patch Changes
- #527
7ccca87
Thanks @AntonyBlakey! - Fix pratt parser behavior in the face of error correction - #531
e3450be4
Thanks @alcuadrado! - Make ESM named imports work in Node.js.
v0.7.0
0.7.0
Minor Changes
-
#502
c383238
Thanks @AntonyBlakey! - Added error recovery i.e. a CST is always produced, even if there are errors. The erroneous/skipped text is in the CST as aTokenKind::SKIPPED
token. -
#501
cb221fe
Thanks @OmarTawfik! - generate typescript string enums for CST kinds -
#517
8bd5446
Thanks @OmarTawfik! - extract inlined and sub-expressions in language grammar -
#518
b3b562b
Thanks @OmarTawfik! - fill in missing CST node names -
#515
f24e873
Thanks @OmarTawfik! - switch over the NPM package to use CommonJS modules instead of ES modules. -
#498
44f1ff7
Thanks @OmarTawfik! - flatten unnamed CST nodes into parent nodes -
#502
c383238
Thanks @AntonyBlakey! - Use the Rowan model for the CST i.e. TokenNodes contain the string content, and RuleNodes contain only the combined length of their children's text. -
#499
1582d60
Thanks @OmarTawfik! - preserve correct ranges on empty rule nodes -
#500
73ddac9
Thanks @OmarTawfik! - inlining CST nodes that offer no additional syntactic information -
#512
72dc3d3
Thanks @AntonyBlakey! - Expression productions now correctly wrap the recursive 'calls' in a rule node
v0.6.0
0.6.0
Minor Changes
-
#490
ea8e7e7
Thanks @OmarTawfik! - provide API to list supported language versions -
#489
15c34a7
Thanks @OmarTawfik! - replace panics with JS exceptions in npm package
Patch Changes
- #488
d7f171c
Thanks @DaniPopes! - introduce acli
Cargo feature to compile the CLI binary
v0.5.0
0.5.0
Minor Changes
-
#475
0cdfe86
Thanks @OmarTawfik! - match TypeScript and Rust API namespaces -
#477
13c85a2
Thanks @OmarTawfik! - move expression operators into separate nodes -
#481
0269f2b
Thanks @OmarTawfik! - fix grammar versions of individual keywords -
#473
11d8cb0
Thanks @OmarTawfik! - upgrade to rust 1.69.0
v0.4.0
0.4.0
Minor Changes
-
#458
c0fc7e9
Thanks @AntonyBlakey! - Record both character and byte offsets for input positions -
#463
0958d6b
Thanks @OmarTawfik! - usenumber
and getters in npm public API
v0.3.0
0.3.0
Minor Changes
-
#457
b7aae2a
Thanks @OmarTawfik! - minor grammar fixes -
#453
0f2f9ab
Thanks @OmarTawfik! - move Rust'ssyntax::Parser::Language
API to root module -
#454
85dec01
Thanks @OmarTawfik! - moving to Rust version 1.65.0 -
#456
c6d1041
Thanks @OmarTawfik! - exposeParseError
API -
#451
78f633c
Thanks @OmarTawfik! - renameVisitorExitResponse::StepIn
toVisitorExitResponse::Continue