feat: Module reading functions #159

Open
aniva wants to merge 3 commits from env/module into dev
1 changed files with 18 additions and 0 deletions
Showing only changes of commit 4f5ffc1ffb - Show all commits

View File

@ -112,6 +112,24 @@ structure ExprEchoResult where
type: Expression type: Expression
deriving Lean.ToJson deriving Lean.ToJson
-- Describe the current state of the environment
structure EnvDescribe where
deriving Lean.FromJson
structure EnvDescribeResult where
imports : Array String
modules : Array String
deriving Lean.ToJson
-- Describe a module
structure EnvModule where
module : String
deriving Lean.FromJson
structure EnvModuleResult where
imports: Array String
constNames: Array String
extraConstNames: Array String
deriving Lean.ToJson
-- Print all symbols in environment -- Print all symbols in environment
structure EnvCatalog where structure EnvCatalog where
deriving Lean.FromJson deriving Lean.FromJson