pyk.kore.match module
-
app(symbol: str | None = None) → Callable[[Pattern], App][source]
-
arg(n: int, /) → Callable[[App], Pattern][source]
-
arg(symbol: str, /) → Callable[[App], App]
-
args() → Callable[[App], tuple[()]][source]
-
args(n1: int, /) → Callable[[App], tuple[Pattern]]
-
args(n1: int, n2: int, /) → Callable[[App], tuple[Pattern, Pattern]]
-
args(n1: int, n2: int, n3: int, /) → Callable[[App], tuple[Pattern, Pattern, Pattern]]
-
args(n1: int, n2: int, n3: int, n4: int, /) → Callable[[App], tuple[Pattern, Pattern, Pattern, Pattern]]
-
args(*ns: int) → Callable[[App], tuple[Pattern, ...]]
-
args(s1: str, /) → Callable[[App], tuple[App]]
-
args(s1: str, s2: str, /) → Callable[[App], tuple[App, App]]
-
args(s1: str, s2: str, s3: str, /) → Callable[[App], tuple[App, App, App]]
-
args(s1: str, s2: str, s3: str, s4: str, /) → Callable[[App], tuple[App, App, App, App]]
-
args(*ss: str) → Callable[[App], tuple[App, ...]]
-
case_symbol(*cases: tuple[str, Callable[[App], T]], default: Callable[[App], T] | None = None) → Callable[[Pattern], T][source]
-
inj(pattern: Pattern) → Pattern[source]
-
kore_bool(pattern: Pattern) → bool[source]
-
kore_bytes(pattern: Pattern) → bytes[source]
-
kore_id(pattern: Pattern) → str[source]
-
kore_int(pattern: Pattern) → int[source]
-
kore_list_of(item: Callable[[Pattern], T]) → Callable[[Pattern], tuple[T, ...]][source]
-
kore_map_of(key: Callable[[Pattern], K], value: Callable[[Pattern], V], *, cell: str | None = None) → Callable[[Pattern], tuple[tuple[K, V], ...]][source]
-
kore_set_of(item: Callable[[Pattern], T]) → Callable[[Pattern], tuple[T, ...]][source]
-
kore_str(pattern: Pattern) → str[source]
-
match_app(pattern: Pattern, symbol: str | None = None) → App[source]
-
match_dv(pattern: Pattern, sort: Sort | None = None) → DV[source]
-
match_inj(pattern: Pattern) → App[source]
-
match_left_assoc(pattern: Pattern) → LeftAssoc[source]
-
match_list(pattern: Pattern) → tuple[Pattern, ...][source]
-
match_map(pattern: Pattern, *, cell: str | None = None) → tuple[tuple[Pattern, Pattern], ...][source]
-
match_set(pattern: Pattern) → tuple[Pattern, ...][source]
-
match_symbol(app: App, symbol: str) → None[source]