-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpkg.generated.mbti
More file actions
46 lines (31 loc) · 1.25 KB
/
pkg.generated.mbti
File metadata and controls
46 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Generated using `moon info`, DON'T EDIT IT
package "oboard/moonbit-eval"
import {
"moonbitlang/parser/syntax",
"oboard/moonbit-eval/interpreter/core",
}
// Values
pub fn add_embedded_fn(MoonBitVM, String, (@core.RuntimeFunctionContext) -> @core.RuntimeValue raise @core.ControlFlow) -> Unit
pub fn add_embedded_method(MoonBitVM, String, String, (@core.RuntimeFunctionContext) -> @core.RuntimeValue raise @core.ControlFlow) -> Unit
pub fn add_extern_fn(MoonBitVM, String, (@core.RuntimeFunctionContext) -> @core.RuntimeValue raise @core.ControlFlow) -> Unit
pub fn code_to_ast(String) -> String
pub fn eval_result_to_string(EvalResult) -> String
pub fn expr_to_string(@syntax.Expr) -> String
pub fn value_to_json(@core.RuntimeValue) -> String
pub fn value_to_string(@core.RuntimeValue) -> String
// Errors
// Types and methods
pub enum EvalResult {
Success(@core.RuntimeValue, @core.ClosureInterpreter)
Error(String, @core.ClosureInterpreter)
}
pub impl Show for EvalResult
pub(all) struct MoonBitVM {
interpreter : @core.ClosureInterpreter
log : Bool
}
pub fn MoonBitVM::create(log? : Bool) -> Self
pub fn MoonBitVM::eval(Self, String, log? : Bool, top? : Bool) -> EvalResult
pub fn MoonBitVM::new(log? : Bool) -> Self
// Type aliases
// Traits