feat: Protocol for module access

This commit is contained in:
Leni Aniva 2025-01-15 21:02:04 -08:00
parent c1f63af019
commit 4f5ffc1ffb
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 18 additions and 0 deletions

View File

@ -112,6 +112,24 @@ structure ExprEchoResult where
type: Expression
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
structure EnvCatalog where
deriving Lean.FromJson