Expand description
State clause parser (SPEC-019 R.1, CON-1900).
Parses (state entry…) and (:state-bounds bound…) S-expressions into
StateClause and StateBounds. Post-parse over the SExpr AST; every
head is a distinct symbol, so dispatch is LL(1) at every level. Fail
closed: an unknown head, a wrong arity, or a wrong atom kind is an error
and nothing is repaired.
Functions§
- parse_
rule - Parse one rule
(head arg…). - parse_
state - Parse a
(state entry…)clause. - parse_
state_ bounds - Parse a
(:state-bounds bound…)clause; absent bounds take defaults.