ocaml: phase 5.1 expr_eval.ml baseline (9/9 pass)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 52s

A tiny arithmetic-expression evaluator using:
  type expr = Lit of int | Add of expr*expr | Mul of expr*expr | Neg of expr
  let rec eval e = match e with | Lit n -> n | Add (a,b) -> ...

Exercises type-decl + multi-arg ctor + recursive match end-to-end.
Per-program timeout in run.sh bumped to 120s.
This commit is contained in:
2026-05-08 15:01:04 +00:00
parent 9f539ab392
commit 0cf5c8f219
4 changed files with 26 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ for f in lib/ocaml/baseline/*.ml; do
(eval "(ocaml-run-program (file-read \"$f\"))")
EOF
output=$(timeout 60 "$SX_SERVER" < "$TMP" 2>/dev/null)
output=$(timeout 120 "$SX_SERVER" < "$TMP" 2>/dev/null)
rm -f "$TMP"
result=$(echo "$output" | awk '