pyk.kast.outer_syntax module
- class AST(*, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
ABC
- location: tuple[int, int, int, int] | None = None
- source: Path | None = None
- final class Alias(bubble: 'str', label: 'str' = '', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[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(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
StringSentence
- bubble: str
- label: str = ''
- final class Config(bubble: 'str', label: 'str' = '', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
StringSentence
- bubble: str
- label: str = ''
- final class Context(bubble: 'str', label: 'str' = '', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[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', *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None, public: 'bool' = True)[source]
Bases:
AST
- module_name: str
- public: bool = True
- final class Lexical(regex: 'str', *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
ProductionItem
- regex: str
- final class Module(name: 'str', sentences: 'Iterable[Sentence]' = (), imports: 'Iterable[Import]' = (), att: 'Att' = Att(source=None, location=None, items=()), source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
AST
- name: str
- final class NonTerminal(sort: 'Sort', name: 'str' = '', *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[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(source=None, location=None, items=()))[source]
Bases:
ProductionLike
- items: tuple[ProductionItem, ...]
- class ProductionItem(*, source: Path | None = None, location: tuple[int, int, int, int] | None = None)[source]
Bases:
AST
,ABC
- class ProductionLike(*, source: Path | None = None, location: tuple[int, int, int, int] | None = None)[source]
Bases:
AST
,ABC
- final class Require(path: 'str', *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
AST
- path: str
- final class Rule(bubble: 'str', label: 'str' = '', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
StringSentence
- bubble: str
- label: str = ''
- class Sentence(*, source: Path | None = None, location: tuple[int, int, int, int] | None = None)[source]
Bases:
AST
,ABC
- 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, ...]
- class StringSentence(*, source: Path | None = None, location: tuple[int, int, int, int] | None = None)[source]
Bases:
Sentence
,ABC
- bubble: str
- label: str
- final class SyntaxAssoc(assoc: 'Assoc', klabels: 'Iterable[str]')[source]
Bases:
SyntaxSentence
- klabels: tuple[str, ...]
- final class SyntaxDecl(decl: 'SortDecl', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[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: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
SyntaxSentence
- name: str
- regex: str
- final class SyntaxPriority(groups: 'Iterable[Iterable[str]]')[source]
Bases:
SyntaxSentence
- groups: tuple[tuple[str, ...], ...]
- class SyntaxSentence(*, source: Path | None = None, location: tuple[int, int, int, int] | None = None)[source]
Bases:
Sentence
,ABC
- final class SyntaxSynonym(new: 'SortDecl', old: 'Sort', att: 'Att' = Att(source=None, location=None, items=()), *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
SyntaxSentence
- final class Terminal(value: 'str', *, source: 'Path | None' = None, location: 'tuple[int, int, int, int] | None' = None)[source]
Bases:
ProductionItem
- value: str