pyk.kast.outer_syntax module¶
- final class Alias(bubble: 'str', label: 'str' = '', att: 'Att' = Att(items=()))[source]¶
Bases:
StringSentence
- bubble: str¶
- label: str = ''¶
- class Assoc(value)[source]¶
Bases:
Enum
An enumeration.
- LEFT = 'left'¶
- NON_ASSOC = 'non-assoc'¶
- RIGHT = 'right'¶
- final class Att(items: 'Iterable[tuple[str, str]]' = ())[source]¶
Bases:
AST
,Sequence
[tuple
[str
,str
]]- items: tuple[tuple[str, str], ...]¶
- final class Claim(bubble: 'str', label: 'str' = '', att: 'Att' = Att(items=()))[source]¶
Bases:
StringSentence
- bubble: str¶
- label: str = ''¶
- final class Config(bubble: 'str', label: 'str' = '', att: 'Att' = Att(items=()))[source]¶
Bases:
StringSentence
- bubble: str¶
- label: str = ''¶
- final class Context(bubble: 'str', label: 'str' = '', att: 'Att' = Att(items=()))[source]¶
Bases:
StringSentence
- bubble: str¶
- label: str = ''¶
- final class Definition(modules: 'Iterable[Module]' = (), requires: 'Iterable[Require]' = ())[source]¶
Bases:
AST
- final class Import(module_name: 'str', *, public: 'bool' = True)[source]¶
Bases:
AST
- module_name: str¶
- public: bool = True¶
- final class Lexical(regex: 'str')[source]¶
Bases:
ProductionItem
- regex: str¶
- final class Module(name: 'str', sentences: 'Iterable[Sentence]' = (), imports: 'Iterable[Import]' = (), att: 'Att' = Att(items=()))[source]¶
Bases:
AST
- name: str¶
- final class NonTerminal(sort: 'Sort', name: 'str' = '')[source]¶
Bases:
ProductionItem
- name: str = ''¶
- final class PriorityBlock(productions: 'Iterable[ProductionLike]', assoc: 'Assoc | None' = None)[source]¶
Bases:
AST
- productions: tuple[ProductionLike, ...]¶
- final class Production(items: 'Iterable[ProductionItem]', att: 'Att' = Att(items=()))[source]¶
Bases:
ProductionLike
- items: tuple[ProductionItem, ...]¶
- final class Rule(bubble: 'str', label: 'str' = '', att: 'Att' = Att(items=()))[source]¶
Bases:
StringSentence
- bubble: str¶
- label: str = ''¶
- final class Sort(name: 'str', args: 'Iterable[int | str]' = ())[source]¶
Bases:
AST
- args: tuple[int | str, ...]¶
- name: str¶
- final class SortDecl(name: 'str', params: 'Iterable[str]' = (), args: 'Iterable[str]' = ())[source]¶
Bases:
AST
- args: tuple[str, ...]¶
- name: str¶
- params: tuple[str, ...]¶
- final class SyntaxAssoc(assoc: 'Assoc', klabels: 'Iterable[str]')[source]¶
Bases:
SyntaxSentence
- klabels: tuple[str, ...]¶
- final class SyntaxDecl(decl: 'SortDecl', att: 'Att' = Att(items=()))[source]¶
Bases:
SyntaxSentence
- final class SyntaxDefn(decl: 'SortDecl', blocks: 'Iterable[PriorityBlock]' = ())[source]¶
Bases:
SyntaxSentence
- blocks: tuple[PriorityBlock, ...]¶
- final class SyntaxLexical(name: 'str', regex: 'str')[source]¶
Bases:
SyntaxSentence
- name: str¶
- regex: str¶
- final class SyntaxPriority(groups: 'Iterable[Iterable[str]]')[source]¶
Bases:
SyntaxSentence
- groups: tuple[tuple[str, ...], ...]¶
- final class SyntaxSynonym(new: 'SortDecl', old: 'Sort', att: 'Att' = Att(items=()))[source]¶
Bases:
SyntaxSentence
- final class Terminal(value: 'str')[source]¶
Bases:
ProductionItem
- value: str¶