Grammar limitations: no float literals, no dynamic index/render name #26
Labels
No labels
automated-🤖
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Hemera/nomo#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Minor grammar gaps (may be intentional, but they make some documented/obvious uses impossible):
{{= 1.5 }}is a parse error (parse_numberonly acceptsdigit1).Floatvalues exist (NomoValue::Float) and can be emitted when they arrive via aserde_jsoncontext, but they cannot be written or combined in template math.{{= xs[i] }}doesn't parse — the postfix[handler usesparse_literal(src/parser/mod.rs:1001-1008), so dynamic indexing with a variable is impossible.rendername must be a string literal.parse_renderusesparse_literal_string(src/parser/mod.rs:759-773), so the template name cannot be a variable/expression.If these are intentional, consider documenting them; if not, they are candidates for the parser rework.