Skip to main content

Module state_parser

Module state_parser 

Source
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.