-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyk getters for KOuter classes, updates to unparsing (#2693)
* pyk/kast: add syntax_productions property, and lift both productions/syntax_products to KDefinition * pyk/kast: add constructors/functions properties to KFlatModule and KDefinition * pyk/kprint: only consider syntax productions for unparsing * ktool/kprint: add parens for productions with NonTerminal on edges * pyk/kast: calculate constructors as inverse of functions * Revert "ktool/kprint: add parens for productions with NonTerminal on edges" This reverts commit 4d8dbbe. * pyk/kast: correct check for non-free-constructors * pyk/kast: correct and clarify issue with functions property of KFlatModule * Update pyk/src/pyk/kast.py Co-authored-by: Tamás Tóth <[email protected]> * pyk/kast: move _is_non_free_constructor into functions property of KFlatModule Co-authored-by: Tamás Tóth <[email protected]> Co-authored-by: rv-jenkins <[email protected]>
- Loading branch information
1 parent
51e719d
commit f5b61d6
Showing
2 changed files
with
41 additions
and
11 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
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