You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: src/mlang/index.mld
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,25 @@ and basically all programs typecheck ; however {!module: Mlang.M_frontend.Valida
28
28
Mlang.M_ir.Com
29
29
Mlang.M_ir.Format_mir
30
30
Mlang.M_ir.Mir
31
-
Mlang.M_ir.Mir_interpreter
32
31
Mlang.M_ir.Mir_number
33
32
Mlang.M_ir.Mir_roundops }
34
33
34
+
{1 Interpreter}
35
+
36
+
The intepreter is the reference for the M semantics. The C code Mlang generates must
37
+
follow it.
38
+
The main interpreter module is {!module: Mlang.Mir_interpreter.Eval} which defines two
39
+
functions: {!Mlang.Mir_interpreter.Eval.evaluate_program} and {!Mlang.Mir_interpreter.Eval.evaluate_expr}. It also defines several modules that evaluates programs and expression
40
+
with different float precisions.
41
+
42
+
{!modules:
43
+
Mlang.Mir_interpreter.Anomalies
44
+
Mlang.Mir_interpreter.Context
45
+
Mlang.Mir_interpreter.Eval
46
+
Mlang.Mir_interpreter.Functions
47
+
Mlang.Mir_interpreter.Print
48
+
Mlang.Mir_interpreter.Types }
49
+
35
50
{1 Testing}
36
51
37
52
Mlang comes with a testing framework for M programs that is based on
0 commit comments