Skip to main content

cpu_const_value

Function cpu_const_value 

Source
pub fn cpu_const_value<'src>() -> impl Parser<'src, &'src str, Value, Err<Simple<'src, char>>>
Expand description

Parses the body of const.<type> <literal> — without the leading const keyword (the derive macro emits that). Numeric and bool variants only.

String, FunctionRef, and HeapRef variants of Value are intentionally excluded: they require the orchestrator’s interner/symbol tables.