pyk.kast package¶
Submodules¶
- pyk.kast.att module
AnyType
AttEntry
AttKey
AttType
Atts
Atts.ALIAS
Atts.ALIAS_REC
Atts.ANYWHERE
Atts.ASSOC
Atts.BRACKET
Atts.CELL
Atts.CELL_COLLECTION
Atts.CELL_FRAGMENT
Atts.CELL_NAME
Atts.CELL_OPT_ABSENT
Atts.CIRCULARITY
Atts.COLOR
Atts.COLORS
Atts.COMM
Atts.CONCAT
Atts.CONSTRUCTOR
Atts.DEPENDS
Atts.DIGEST
Atts.ELEMENT
Atts.FORMAT
Atts.FRESH_GENERATOR
Atts.FUNCTION
Atts.FUNCTIONAL
Atts.GROUP
Atts.HAS_DOMAIN_VALUES
Atts.HOOK
Atts.IDEM
Atts.IMPURE
Atts.INDEX
Atts.INITIALIZER
Atts.INJECTIVE
Atts.KLABEL
Atts.LABEL
Atts.LEFT
Atts.LOCATION
Atts.MACRO
Atts.MACRO_REC
Atts.MAINCELL
Atts.OVERLOAD
Atts.OWISE
Atts.PREDICATE
Atts.PREFER
Atts.PRIORITIES
Atts.PRIORITY
Atts.PRIVATE
Atts.PRODUCTION
Atts.PROJECTION
Atts.RIGHT
Atts.SEQSTRICT
Atts.SIMPLIFICATION
Atts.SORT
Atts.SOURCE
Atts.STRICT
Atts.SYMBOL
Atts.TERMINALS
Atts.TOKEN
Atts.TOTAL
Atts.TRUSTED
Atts.UNIQUE_ID
Atts.UNIT
Atts.UNPARSE_AVOID
Atts.USER_LIST
Atts.WRAP_ELEMENT
Atts.keys()
Format
FormatType
IntType
KAtt
LocationType
NoneType
OptionalType
PathType
StrType
WithKAtt
- pyk.kast.inner module
- pyk.kast.kast module
- pyk.kast.manip module
abstract_term_safely()
apply_existential_substitutions()
bool_to_ml_pred()
build_claim()
build_rule()
cell_label_to_var_name()
collapse_dots()
count_vars()
extract_cells()
extract_lhs()
extract_rhs()
extract_subst()
flatten_label()
free_vars()
if_ktype()
indexed_rewrite()
inline_cell_maps()
is_anon_var()
is_term_like()
labels_to_dots()
minimize_rule()
minimize_term()
ml_pred_to_bool()
no_cell_rewrite_to_dots()
on_attributes()
propagate_up_constraints()
push_down_rewrites()
remove_attrs()
remove_generated_cells()
remove_semantic_casts()
remove_source_map()
remove_useless_constraints()
rename_generated_vars()
replace_rewrites_with_implies()
set_cell()
simplify_bool()
sort_ac_collections()
sort_assoc_label()
split_config_and_constraints()
split_config_from()
undo_aliases()
useless_vars_to_dots()
- pyk.kast.markdown module
- pyk.kast.outer module
KAssoc
KBubble
KClaim
KContext
KDefinition
KDefinition.add_cell_map_items()
KDefinition.add_ksequence_under_k_productions()
KDefinition.add_sort_params()
KDefinition.alias_rules
KDefinition.all_module_names
KDefinition.all_modules
KDefinition.all_modules_dict
KDefinition.argument_sorts()
KDefinition.att
KDefinition.cell_collection_productions
KDefinition.constructors
KDefinition.empty_config()
KDefinition.from_dict()
KDefinition.functions
KDefinition.greatest_common_subsort()
KDefinition.init_config()
KDefinition.instantiate_cell_vars()
KDefinition.least_common_supersort()
KDefinition.let()
KDefinition.let_att()
KDefinition.macro_rules
KDefinition.main_module
KDefinition.main_module_name
KDefinition.module()
KDefinition.module_names
KDefinition.modules
KDefinition.overloads
KDefinition.priorities
KDefinition.production_for_cell_sort()
KDefinition.productions
KDefinition.remove_cell_map_items()
KDefinition.requires
KDefinition.return_sort()
KDefinition.rules
KDefinition.semantic_rules
KDefinition.sentence_by_unique_id
KDefinition.sort()
KDefinition.sort_strict()
KDefinition.sort_vars()
KDefinition.subsort_table
KDefinition.subsorts()
KDefinition.symbols
KDefinition.syntax_productions
KDefinition.to_dict()
KFlatModule
KFlatModule.att
KFlatModule.cell_collection_productions
KFlatModule.claims
KFlatModule.constructors
KFlatModule.from_dict()
KFlatModule.functions
KFlatModule.imports
KFlatModule.let()
KFlatModule.let_att()
KFlatModule.map_sentences()
KFlatModule.name
KFlatModule.productions
KFlatModule.rules
KFlatModule.sentence_by_unique_id
KFlatModule.sentences
KFlatModule.syntax_productions
KFlatModule.syntax_sorts
KFlatModule.to_dict()
KFlatModuleList
KImport
KNonTerminal
KOuter
KProduction
KProductionItem
KRegexTerminal
KRequire
KRule
KRuleLike
KSentence
KSortSynonym
KSyntaxAssociativity
KSyntaxLexical
KSyntaxPriority
KSyntaxSort
KTerminal
read_kast_definition()
- pyk.kast.outer_lexer module
State
Token
TokenType
TokenType.ATTR_CONTENT
TokenType.ATTR_KEY
TokenType.BUBBLE
TokenType.COLON
TokenType.COMMA
TokenType.DCOLONEQ
TokenType.EOF
TokenType.EQ
TokenType.GT
TokenType.ID_LOWER
TokenType.ID_UPPER
TokenType.KLABEL
TokenType.KW_ALIAS
TokenType.KW_CLAIM
TokenType.KW_CONFIG
TokenType.KW_CONTEXT
TokenType.KW_ENDMODULE
TokenType.KW_IMPORTS
TokenType.KW_LEFT
TokenType.KW_LEXICAL
TokenType.KW_MODULE
TokenType.KW_NONASSOC
TokenType.KW_PRIORITY
TokenType.KW_PRIVATE
TokenType.KW_PUBLIC
TokenType.KW_REQUIRES
TokenType.KW_RIGHT
TokenType.KW_RULE
TokenType.KW_SYNTAX
TokenType.LBRACE
TokenType.LBRACK
TokenType.LPAREN
TokenType.MODNAME
TokenType.NAT
TokenType.PLUS
TokenType.QUESTION
TokenType.RBRACE
TokenType.RBRACK
TokenType.REGEX
TokenType.RPAREN
TokenType.RULE_LABEL
TokenType.STRING
TokenType.TILDE
TokenType.TIMES
TokenType.VBAR
outer_lexer()
- pyk.kast.outer_parser module
- pyk.kast.outer_syntax module
AST
Alias
Assoc
Att
Claim
Config
Context
Definition
Import
Lexical
Module
NonTerminal
PriorityBlock
Production
ProductionItem
ProductionLike
Require
Rule
Sentence
Sort
SortDecl
StringSentence
SyntaxAssoc
SyntaxDecl
SyntaxDefn
SyntaxLexical
SyntaxPriority
SyntaxSentence
SyntaxSynonym
Terminal
UserList
- pyk.kast.pretty module