-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add command to build a graph from a CST and extract CLI commands into the runtime library #983
Add command to build a graph from a CST and extract CLI commands into the runtime library #983
Conversation
🦋 Changeset detectedLatest commit: 23d91a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
7432b15
to
597bdea
Compare
build-graph
command to slang_solidity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions.
Happy to discuss f2f first to get a better understanding.
And put it behind the `cli` feature flag
3b31f9e
to
2d9ba93
Compare
91e8088
to
a19995e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the new changes!
I think the only thing remaining here is adding the new crate to USER_FACING_CRATES
.
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/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. ## @nomicfoundation/[email protected] ### Minor Changes - [#975](#975) [`46b1dde`](46b1dde) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `QueryResult` to `QueryMatch`, and its `bindings` to `captures`. - [#971](#971) [`be943b7`](be943b7) Thanks [@Xanewok](https://github.com/Xanewok)! - Rename `RuleKind` to `NonterminalKind`, `TokenKind` to `TerminalKind`, and `NodeLabel` to `EdgeLabel`. - [#963](#963) [`a5593f9`](a5593f9) Thanks [@Xanewok](https://github.com/Xanewok)! - Introduce a `Diagnostic` API for compiler errors, warnings etc. ### Patch Changes - [#996](#996) [`cdc153d`](cdc153d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for version `0.8.26`. - [#983](#983) [`ea31417`](ea31417) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Expose the language root non-terminal kind at `Language.rootKind()`. - [#965](#965) [`61b6b06`](61b6b06) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - refactor CST building and querying utilities into a separate `metaslang_cst` crate. - [#997](#997) [`84ad856`](84ad856) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support stack assignments in Yul before `0.5.0`. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Closes #981
metaslang_graph_builder
functionality in the generated languages runtime, parameterized with the languageKindTypes
.testlang
.slang_solidity
into the runtime crate to be able to easily reuse it from other generated languages.build-graph
command to the common CLI commands to run a source file through an arbitrary.msgb
file and build a graph.Items 1, 2 and 4 are only available when building with the private feature flag
__graph_builder
.