summaryrefslogtreecommitdiff
path: root/lang/token_string.go
AgeCommit message (Collapse)Author
5 daysfeat: add support for range clause and iteratorsMarc Vertes
- vm: added Pull, Next and Stop instructions, to implement iterators - lang: add Range, Next and Stop tokens - parser: handle range clause. Still naive and incomplete. - comp: generate iterator instructions from range clause. Work in progress. Only initial support for slices. Many more tests and combinations needed, but the main pattern is there now.
10 daysfeat: handle slice expressionsMarc Vertes
2026-01-11fix: handle assign statements on map elementsMarc Vertes
A new token MapAssign is added to implement assignements involving a map, slice or array, an index key expression and a value expression.
2026-01-07fix: improve handling of composite literal struct expressionsMarc 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.
2024-04-23feat: initial and partial support of composite expressions (#9)Marc Vertes
A new `Composite` token is created. Literal composite expressions are recognized and partially handled by the parser but not yet by the code generator. Other cosmetic changes are present.
2024-04-02chore: add linters and some lint fixes (#8)Marc Vertes
* chore: add linters and some lint fixes Configure some golangci-lint linters to get the code quality right. Apply the first fixes. Next step will be to add github actions to run lint and tests in github CI. * chore: more lint, fixed comments and variable names. no semantic change. * chore: add Makefile This makefile is intended to be used as a local substitute to github actions.