Constant values #137
Labels
enhancement
New feature or request
scope:semantics
Related to the semantics of TreeLDR
scope:syntax
Related to the syntax of TreeLDR
I propose to add a new construct in TreeLDR: constants. A constant is a named construct, just like a layout, struct field, or enum variant that holds a value formatted with a given layout.
The general syntax is:
For instance:
This will require implementing value expressions.
Such a constant can then be exported in the target language as a constant definition. For instance in Rust:
The text was updated successfully, but these errors were encountered: