-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add annotations and tweaks to parse a complete smir json (#408)
* read a file in convert-from-definition instead of expecting verbatim json * add more file requires clauses to reflect imports As it turns out, these `requires "my-file.k"` clauses are interpreted _transitively_, but we should add all requirements explicitly to make editing and moving module contents easier. * WIP annotating K productions for parsing, top-down * WIP fixing var-debug-info parsing * teach the parser some more English plurals * fix parser for var_debug_info from panic_example * mir group annotations for all syntax in ty.k * reformat body.k to remove overly long lines * accept strings as single arguments of enum variants * Fix symbol typo, simplify Ty syntax, rename GenericArg * The `Ty` production with a struct was not observed in the wild yet. In addition, the [related rust code](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Ty.html) seems to not have the modeled structure. * The `GenericArgs` list needs to contain elements of sort `GenericArg`, not `GenericArgKind` (see python list parsing code). * fix MonoItems parsing * Fix `GlobalAllocs` parsing (renamed from `GlobalAllocMap`) * add some details to the parser documentation notes * Set Version: 0.3.38 * Set Version: 0.3.39 * From review: add/correct list symbols as per convention, remove some comments, remove unused `Ty` production --------- Co-authored-by: devops <[email protected]>
- Loading branch information
Showing
13 changed files
with
535 additions
and
339 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "kmir" | ||
version = "0.3.38" | ||
version = "0.3.39" | ||
description = "" | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from typing import Final | ||
|
||
VERSION: Final = '0.3.38' | ||
VERSION: Final = '0.3.39' |
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
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
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
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
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
Oops, something went wrong.