summaryrefslogtreecommitdiff
path: root/comp/compiler.go
AgeCommit message (Collapse)Author
2026-01-06fix: correct and simplify parsing of expressions.Marc Vertes
The expressions were parsed from right to left, and it was incorrect and cumbersome. Now they are processed from left to right, with a simpler and correct handling of precedence rules. The vm function call syntax has been changed to set the function before the input arguments on the stack, as to follow the declaring order in languages.
2025-12-04chore: move symbol types and functions in its own package.Marc Vertes
2025-12-03feat: support literal struct expressions with keyed elementsMarc Vertes
2025-12-02feat: support of struct literal compositeMarc Vertes
Added missing vm instructions to allocate a typed value on the stack and to set a structure field. It's possible now to generate struct literal composites for non keyed struct fields.
2025-11-29chore: shorter name for packages, simpilfy vm valuesMarc Vertes