tsemekwes.ts
1# Copyright © 2017-2026 Juancarlo Añez (apalala@gmail.com) 2# SPDX-License-Identifier: Apache-2.0 3from .types import ( 4 AlertExp, 5 AltExp, 6 AnyExp, 7 BoxExp, 8 CallExp, 9 ChoiceExp, 10 ClosureExp, 11 ConstantExp, 12 CutExp, 13 DotExp, 14 EmptyClosureExp, 15 EofExp, 16 EolExp, 17 Exp, 18 FailExp, 19 GatherExp, 20 Grammar, 21 GroupExp, 22 JoinExp, 23 LookaheadExp, 24 NamedBoxExp, 25 NamedExp, 26 NamedListExp, 27 NegativeLookaheadExp, 28 NullExp, 29 OptionalExp, 30 OverrideExp, 31 OverrideListExp, 32 PatternExp, 33 PositiveClosureExp, 34 PositiveGatherExp, 35 PositiveJoinExp, 36 Rule, 37 RuleIncludeExp, 38 SeqExp, 39 SkipGroupExp, 40 SkipToExp, 41 TokenExp, 42 VoidExp, 43 source_hash__, 44) 45 46__all__ = [ 47 "AlertExp", 48 "AltExp", 49 "AnyExp", 50 "BoxExp", 51 "CallExp", 52 "ChoiceExp", 53 "ClosureExp", 54 "ConstantExp", 55 "CutExp", 56 "DotExp", 57 "EmptyClosureExp", 58 "EofExp", 59 "EolExp", 60 "Exp", 61 "FailExp", 62 "GatherExp", 63 "Grammar", 64 "GroupExp", 65 "JoinExp", 66 "LookaheadExp", 67 "NamedBoxExp", 68 "NamedExp", 69 "NamedListExp", 70 "NegativeLookaheadExp", 71 "NullExp", 72 "OptionalExp", 73 "OverrideExp", 74 "OverrideListExp", 75 "PatternExp", 76 "PositiveClosureExp", 77 "PositiveGatherExp", 78 "PositiveJoinExp", 79 "Rule", 80 "RuleIncludeExp", 81 "SeqExp", 82 "SkipGroupExp", 83 "SkipToExp", 84 "TokenExp", 85 "VoidExp", 86 "source_hash__", 87]
type AnyExp =
NullExp | CutExp | VoidExp | FailExp | DotExp | EofExp | EolExp | EmptyClosureExp | TokenExp | PatternExp | ConstantExp | AlertExp | CallExp | RuleIncludeExp | GroupExp | SkipGroupExp | LookaheadExp | NegativeLookaheadExp | SkipToExp | AltExp | OptionalExp | ClosureExp | PositiveClosureExp | OverrideExp | OverrideListExp | NamedExp | NamedListExp | JoinExp | PositiveJoinExp | GatherExp | PositiveGatherExp | SeqExp | ChoiceExp
exp: AnyExp
class
Exp(typing.TypedDict):
Base type for all PEG expression nodes in the compiled grammar.
sep: AnyExp
class
Grammar(typing.TypedDict):
211class Grammar(TypedDict): 212 """A compiled PEG grammar: name, directives, keywords, and rules.""" 213 name: str 214 directives: Dict[str, Any] 215 keywords: List[str] 216 rules: List[Rule]
A compiled PEG grammar: name, directives, keywords, and rules.
rules: List[Rule]
sep: AnyExp
exp: AnyExp
exp: AnyExp
sep: AnyExp
sep: AnyExp
class
Rule(typing.TypedDict):
192class Rule(TypedDict): 193 """A single PEG rule with name, params, decorators, and body expression.""" 194 name: str 195 params: List[str] 196 kwparams: Dict[str, str] 197 decorators: List[str] 198 base: str | None 199 is_name: bool 200 is_tokn: bool 201 no_memo: bool 202 no_stak: bool 203 is_memo: bool 204 is_lrec: bool 205 exp: 'AnyExp'
A single PEG rule with name, params, decorators, and body expression.
exp: AnyExp
source_hash__ =
'7bc2844d25206af759ebb26aec44998f'