Equations
- StrataDDM.infoSourceRange (Lean.SourceInfo.original leading pos trailing endPos) = some { start := pos, stop := endPos }
- StrataDDM.infoSourceRange (Lean.SourceInfo.synthetic pos endPos canonical) = some { start := pos, stop := endPos }
- StrataDDM.infoSourceRange Lean.SourceInfo.none = none
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- StrataDDM.sourceLocPos (Lean.Syntax.atom info val) = Option.map (fun (x : StrataDDM.SourceRange) => x.start) (StrataDDM.infoSourceRange info)
- StrataDDM.sourceLocPos (Lean.Syntax.ident info rawVal val preresolved) = Option.map (fun (x : StrataDDM.SourceRange) => x.start) (StrataDDM.infoSourceRange info)
- StrataDDM.sourceLocPos Lean.Syntax.missing = none
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- StrataDDM.sourceLocEnd (Lean.Syntax.atom info val) = Option.map (fun (x : StrataDDM.SourceRange) => x.stop) (StrataDDM.infoSourceRange info)
- StrataDDM.sourceLocEnd (Lean.Syntax.ident info rawVal val preresolved) = Option.map (fun (x : StrataDDM.SourceRange) => x.stop) (StrataDDM.infoSourceRange info)
- StrataDDM.sourceLocEnd Lean.Syntax.missing = none
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- StrataDDM.mkSourceRange? (Lean.Syntax.atom info val) = StrataDDM.infoSourceRange info
- StrataDDM.mkSourceRange? (Lean.Syntax.ident info rawVal val preresolved) = StrataDDM.infoSourceRange info
- StrataDDM.mkSourceRange? Lean.Syntax.missing = none
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- getInputContext : m Parser.InputContext
- getDialects : m DialectMap
- getOpenDialects : m (Std.HashSet DialectName)
- getGlobalContext : m GlobalContext
- getErrorCount : m Nat
- logErrorMessage : Lean.Message → m Unit
Instances
def
StrataDDM.Elab.mkErrorMessage
(inputCtx : Parser.InputContext)
(loc : SourceRange)
(msg : String)
(isSilent : Bool := false)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
StrataDDM.Elab.logError
{m : Type → Type}
[ElabClass m]
(loc : SourceRange)
(msg : String)
(isSilent : Bool := false)
:
m Unit
Equations
- StrataDDM.Elab.logError loc msg isSilent = do let inputCtx ← StrataDDM.Elab.ElabClass.getInputContext StrataDDM.Elab.logErrorMessage (StrataDDM.Elab.mkErrorMessage inputCtx loc msg isSilent)
Instances For
def
StrataDDM.Elab.logErrorMF
{m : Type → Type}
[ElabClass m]
(loc : SourceRange)
(msg : StrataFormat)
(isSilent : Bool := false)
(globalContext? : Option GlobalContext := none)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
Instances For
- inputContext : Parser.InputContext
- stopPos : String.Pos.Raw
- loader : LoadedDialects
- missingImport : Bool
Flag indicating imports are missing (silences some errors).
- typecheck : Bool
When false, type inference and unification are skipped during elaboration.
Instances For
Equations
- StrataDDM.Elab.DeclContext.empty = { inputContext := default, stopPos := 0, loader := StrataDDM.Elab.LoadedDialects.empty, missingImport := false }
Instances For
@[reducible, inline]
Equations
- StrataDDM.Elab.ValueWithName α name = { d : α // StrataDDM.Elab.NamedValue.name d = name }
Instances For
Map metadata attribute names to any declarations with that name that are in the current scope.
- map : Std.DHashMap String fun (name : String) => Array (DialectName × ValueWithName α name)
Instances For
Equations
Instances For
@[implicit_reducible]
instance
StrataDDM.Elab.instInhabitedNamedValueMap
{a✝ : Type}
{a✝¹ : NamedValue a✝}
:
Inhabited (NamedValueMap a✝)
Equations
Map metadata attribute names to any declarations with that name that are in the current scope.
- map : Std.DHashMap String fun (name : String) => Array (DialectName × { d : MetadataDecl // d.name = name })
Instances For
@[implicit_reducible]
Equations
Instances For
def
StrataDDM.Elab.MetadataDeclMap.add
(m : MetadataDeclMap)
(dialect : DialectName)
(decl : MetadataDecl)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- m.addDialect dialect = StrataDDM.Collection.fold (fun (x1 : StrataDDM.Elab.MetadataDeclMap) (x2 : StrataDDM.MetadataDecl) => x1.add dialect.name x2) m dialect.metadata
Instances For
def
StrataDDM.Elab.MetadataDeclMap.get
(m : MetadataDeclMap)
(name : String)
:
Array (DialectName × { d : MetadataDecl // d.name = name })
Instances For
- syncat (d : SynCatDecl) : TypeOrCatDecl
- type (d : TypeDecl) : TypeOrCatDecl
Instances For
@[implicit_reducible]
Equations
Equations
Instances For
Equations
Instances For
Map metadata attribute names to any declarations with that name that are in the current scope.
- map : Std.DHashMap String fun (name : String) => Array (DialectName × { d : TypeOrCatDecl // d.name = name })
Instances For
@[implicit_reducible]
Equations
Instances For
def
StrataDDM.Elab.TypeOrCatDeclMap.add
(m : TypeOrCatDeclMap)
(dialect : DialectName)
(decl : TypeOrCatDecl)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
StrataDDM.Elab.TypeOrCatDeclMap.addSynCat
(m : TypeOrCatDeclMap)
(dialect : DialectName)
(d : SynCatDecl)
:
Equations
- m.addSynCat dialect d = m.add dialect (StrataDDM.Elab.TypeOrCatDecl.syncat d)
Instances For
def
StrataDDM.Elab.TypeOrCatDeclMap.addType
(m : TypeOrCatDeclMap)
(dialect : DialectName)
(d : TypeDecl)
:
Equations
- m.addType dialect d = m.add dialect (StrataDDM.Elab.TypeOrCatDecl.type d)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
StrataDDM.Elab.TypeOrCatDeclMap.get
(m : TypeOrCatDeclMap)
(name : String)
:
Array (DialectName × { d : TypeOrCatDecl // d.name = name })
Instances For
- fixedParsers : Parser.ParsingContext
- openDialects : Array DialectName
- openDialectSet : Std.HashSet DialectName
- typeOrCatDeclMap : TypeOrCatDeclMap
Map for looking up types and categories by name.
- metadataDeclMap : MetadataDeclMap
Map for looking up metadata by name.
- parserMap : PrattParsingTableMap
- tokenTable : Lean.Parser.TokenTable
- globalContext : GlobalContext
- pos : String.Pos.Raw
- errors : Array Lean.Message
Instances For
@[implicit_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
StrataDDM.Elab.DeclState.openParserDialect!
(s : DeclState)
(loader : LoadedDialects)
(dialect : Dialect)
:
Opens the dialect definition dialect in the parser so it is visible to parser, but not part of environment. This is used for dialect definitions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
StrataDDM.Elab.DeclState.ensureLoaded!
(s : DeclState)
(loaded : LoadedDialects)
(dialect : DialectName)
:
partial def
StrataDDM.Elab.DeclState.addDialect!
(s : DeclState)
(loaded : LoadedDialects)
(dialect : Dialect)
:
Opens the dialect (not must not already be open)
def
StrataDDM.Elab.DeclState.openLoadedDialect!
(s : DeclState)
(loaded : LoadedDialects)
(dialect : Dialect)
:
Opens the dialect (not must not already be open)
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible]
Equations
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.