-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fill in missing CST node names #518
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦋 Changeset detectedLatest commit: c39c3bf The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
OmarTawfik
force-pushed
the
OmarTawfik/inline-ebnf
branch
from
July 6, 2023 13:43
dea7d79
to
982cdd1
Compare
OmarTawfik
force-pushed
the
OmarTawfik/missing-names
branch
from
July 6, 2023 13:43
3587ae1
to
13d3ffa
Compare
OmarTawfik
force-pushed
the
OmarTawfik/inline-ebnf
branch
from
July 6, 2023 16:02
982cdd1
to
405a325
Compare
OmarTawfik
force-pushed
the
OmarTawfik/missing-names
branch
from
July 6, 2023 16:02
13d3ffa
to
e33622f
Compare
OmarTawfik
force-pushed
the
OmarTawfik/inline-ebnf
branch
from
July 6, 2023 18:23
405a325
to
8c7609c
Compare
OmarTawfik
force-pushed
the
OmarTawfik/missing-names
branch
from
July 6, 2023 18:23
e33622f
to
a204434
Compare
AntonyBlakey
approved these changes
Jul 7, 2023
link to 353 Adds validation to make sure that: - Productions cannot reference itself, except operators. - Required productions cannot be inlined. - Parsers cannot reference inlined scanners. - Scanners can only reference inlined scanners. - Parser names should be unique, except operator definitions, and parsers defined in different versions. - Prevent useless nesting of parsers if they don't change the output. - make sure keywords are always referenced as productions instead of terminals everywhere in grammar, to guarentee that the correct version checks run on them.
OmarTawfik
force-pushed
the
OmarTawfik/missing-names
branch
from
July 7, 2023 05:52
a204434
to
c39c3bf
Compare
Merged
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 7, 2023
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @nomicfoundation/slang@0.7.0 ### Minor Changes - [#502](#502) [`c383238`](c383238) Thanks [@AntonyBlakey](https://github.com/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 a `TokenKind::SKIPPED` token. - [#501](#501) [`cb221fe`](cb221fe) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - generate typescript string enums for CST kinds - [#517](#517) [`8bd5446`](8bd5446) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - extract inlined and sub-expressions in language grammar - [#518](#518) [`b3b562b`](b3b562b) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fill in missing CST node names - [#515](#515) [`f24e873`](f24e873) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - switch over the NPM package to use CommonJS modules instead of ES modules. - [#498](#498) [`44f1ff7`](44f1ff7) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - flatten unnamed CST nodes into parent nodes - [#502](#502) [`c383238`](c383238) Thanks [@AntonyBlakey](https://github.com/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](#499) [`1582d60`](1582d60) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - preserve correct ranges on empty rule nodes - [#500](#500) [`73ddac9`](73ddac9) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - inlining CST nodes that offer no additional syntactic information - [#512](#512) [`72dc3d3`](72dc3d3) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Expression productions now correctly wrap the recursive 'calls' in a rule node ## changelog@0.7.0 ### Minor Changes - [#502](#502) [`c383238`](c383238) Thanks [@AntonyBlakey](https://github.com/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 a `TokenKind::SKIPPED` token. - [#501](#501) [`cb221fe`](cb221fe) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - generate typescript string enums for CST kinds - [#517](#517) [`8bd5446`](8bd5446) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - extract inlined and sub-expressions in language grammar - [#518](#518) [`b3b562b`](b3b562b) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fill in missing CST node names - [#515](#515) [`f24e873`](f24e873) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - switch over the NPM package to use CommonJS modules instead of ES modules. - [#498](#498) [`44f1ff7`](44f1ff7) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - flatten unnamed CST nodes into parent nodes - [#502](#502) [`c383238`](c383238) Thanks [@AntonyBlakey](https://github.com/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](#499) [`1582d60`](1582d60) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - preserve correct ranges on empty rule nodes - [#500](#500) [`73ddac9`](73ddac9) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - inlining CST nodes that offer no additional syntactic information - [#512](#512) [`72dc3d3`](72dc3d3) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Expression productions now correctly wrap the recursive 'calls' in a rule node Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds validation to make sure that:
Closes #353