Documentation

Lean.Parser.Extension

Equations
Equations
@[inline]
Equations
Equations
Equations
Equations
Equations
inductive Lean.Parser.AliasValue (α : Type) :
Type
@[inline]
abbrev Lean.Parser.AliasTable (α : Type) :
Type
Equations
def Lean.Parser.registerAliasCore {α : Type} (mapRef : IO.Ref (Lean.Parser.AliasTable α)) (aliasName : Lean.Name) (value : Lean.Parser.AliasValue α) :
Equations
def Lean.Parser.getAlias {α : Type} (mapRef : IO.Ref (Lean.Parser.AliasTable α)) (aliasName : Lean.Name) :
Equations
def Lean.Parser.getConstAlias {α : Type} (mapRef : IO.Ref (Lean.Parser.AliasTable α)) (aliasName : Lean.Name) :
IO α
Equations
def Lean.Parser.getUnaryAlias {α : Type} (mapRef : IO.Ref (Lean.Parser.AliasTable α)) (aliasName : Lean.Name) :
IO (αα)
Equations
def Lean.Parser.getBinaryAlias {α : Type} (mapRef : IO.Ref (Lean.Parser.AliasTable α)) (aliasName : Lean.Name) :
IO (ααα)
Equations
Equations
Equations
@[implementedBy Lean.Parser.mkParserOfConstantUnsafe]
def Lean.Parser.runParserAttributeHooks (catName : Lean.Name) (declName : Lean.Name) (builtin : Bool) :
Equations
Equations
@[implementedBy Lean.Parser.evalParserConstUnsafe]
Equations
def Lean.Parser.addBuiltinParser (catName : Lean.Name) (declName : Lean.Name) (leading : Bool) (p : Lean.Parser.Parser) (prio : Nat) :
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
def Lean.Parser.declareBuiltinParser (addFnName : Lean.Name) (catName : Lean.Name) (declName : Lean.Name) (prio : Nat) :
Equations
Equations
Equations
Equations
Equations
Equations
Equations
@[inline]
Equations
Equations
Equations
@[inline]
Equations
Equations
Equations
Equations
  • Lean.Parser.parserOfStack offset prec = { info := { collectTokens := id, collectKinds := id, firstTokens := Lean.Parser.FirstTokens.unknown }, fn := fun c s => Lean.Parser.parserOfStackFn offset { toInputContext := c.toInputContext, toParserModuleContext := c.toParserModuleContext, prec := prec, tokens := c.tokens, quotDepth := c.quotDepth, suppressInsideQuot := c.suppressInsideQuot, savedPos? := c.savedPos?, forbiddenTk? := c.forbiddenTk? } s }