Repository navigation
Commit acfa95e
committed
s2 P1: typed AST (s2/ast.srs): one case per shape with named fields and a source line per node; Ast.Term is a name or a number (the checker decides variable or constant by position). Ast.print writes srs source back, with ( ) only where the s1 parser levels need them. tests/s2/ast.srs builds the Ast of tests/rules.srs, tests/neg/branch_state.srs, tests/neg/loop_state.srs, tests/generic_enum.srs and two lines of tests/eval/basic.srs; the .out is those sources without comment lines, made by grep. mutants 6/6 killed (if branches swapped, match arm dropped, val annotation lost, right operand without ( ), caps bracket, group spacing). run: 1.52M instr:u. srs-test 177 ok 0 FAIL.
1 parent 8a1471d commit acfa95e
3 files changed
Lines changed: 776 additions & 0 deletions
0 commit comments