Cooper.InterpActions (Cooper v0.1.0)

Copy Markdown

Ichor.Actions for casc_interp.aether -- parses a double-quoted string's already escape-processed content into an ordered list of literal string runs and Cooper.Ref.* nodes.

Every reference form arrives as one whole raw token (see the grammar file's own comment on why); each handle_token/3 clause below parses that captured text with plain Elixir string/regex logic rather than further Aether grammar structure. The :default/:+alt/:?"msg" value grammar implemented here (parse_default_value/1) is deliberately reduced from casc.aether's own value rule -- nil/ bool/int/float/strings/atoms/lists only, no dates/IP/duration/bytes/ tuples/nested refs -- a scope trim for refs nested inside a larger string (see casc.aether's own comment on why the bare, whole-value case doesn't have this limitation).