Extensible parsing via attributes
- token: Lean.Parser.Token → Lean.Parser.ParserExtension.OLeanEntry
- kind: Lean.SyntaxNodeKind → Lean.Parser.ParserExtension.OLeanEntry
- category: Lake.Name → Lake.Name → Lean.Parser.LeadingIdentBehavior → Lean.Parser.ParserExtension.OLeanEntry
- parser: Lake.Name → Lake.Name → Nat → Lean.Parser.ParserExtension.OLeanEntry
Instances For
- token: Lean.Parser.Token → Lean.Parser.ParserExtension.Entry
- kind: Lean.SyntaxNodeKind → Lean.Parser.ParserExtension.Entry
- category: Lake.Name → Lake.Name → Lean.Parser.LeadingIdentBehavior → Lean.Parser.ParserExtension.Entry
- parser: Lake.Name → Lake.Name → Bool → Lean.Parser.Parser → Nat → Lean.Parser.ParserExtension.Entry
Instances For
- tokens : Lean.Parser.TokenTable
- kinds : Lean.Parser.SyntaxNodeKindSet
- categories : Lean.Parser.ParserCategories
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
- const: {α : Type} → α → Lean.Parser.AliasValue α
- unary: {α : Type} → (α → α) → Lean.Parser.AliasValue α
- binary: {α : Type} → (α → α → α) → Lean.Parser.AliasValue α
Parser aliases for making ParserDescr
extensible
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
- postAdd : Lake.Name → Lake.Name → Bool → Lean.AttrM Unit
Called after a parser attribute is applied to a declaration.
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Run declName
if possible and inside a quotation, or else p
. The ParserInfo
will always be taken from p
.
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
convenience function for testing
Instances For
Instances For
Instances For
Instances For
The parsing tables for builtin parsers are "stored" in the extracted source code.
Instances For
Instances For
Instances For
Instances For
If the parsing stack is of the form #[.., openCommand]
, we process the open command, and execute p
Instances For
If the parsing stack is of the form #[.., openDecl]
, we process the open declaration, and execute p
Instances For
- category: Lake.Name → Lean.Parser.ParserName
- parser: Lake.Name → Bool → Lean.Parser.ParserName
Instances For
Resolve the given parser name and return a list of candidates.
Instances For
Instances For
Resolve the given parser name and return a list of candidates.
Instances For
Resolve the given parser name and return a list of candidates.