| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-11-07 | parser: implement switch statement | Marc Vertes | |
| A VM instruction `EqualSet` has been added to preserve the left operand on the stack in case of failure, to allow efficient multiple tests on the same value. Both the pattern 'if/else if' and the classical case clauses have been implemented. | |||
| 2023-11-04 | fix: skip parsing empty expression | Marc Vertes | |
| 2023-11-04 | parser: add tests for logical operatators | Marc Vertes | |
| 2023-10-21 | parser: implement operator precedence rules in expressions | Marc Vertes | |
| 2023-10-14 | parser: implement label, goto and continue statements | Marc Vertes | |
| 2023-10-13 | parser: include absolute paths in symbols | Marc Vertes | |
| 2023-10-13 | parser: refactor tests | Marc Vertes | |
| 2023-10-13 | parser: implement 'break' statement | Marc Vertes | |
| 2023-10-12 | parser: implement 'for' statement | Marc Vertes | |
| 2023-10-12 | move to a direct byte code compiler (#8) | Marc Vertes | |
| * chore: refactor to keep only the new parser and bytecode vm * scanner: remove Token.value field * scanner: remove scanner.kind field * chore: move language specification in lang package This avoid a cyclic dependency in scanner_test which can now use the golang/GoSpec language specification for Go. * clean code * scanner: export scanner fields Also parser now generate function calls, including externals. * chore: fix lint issues * parser: handle strings * wip * parser: implement support for 'if, else, else if' statements Resolving labels in the compiler still in progress. * parser: support if statements, improve compiler * improve handling of functions * improve support of local variables * scanner: trim leading and trailing spaces * fixes to make fibonacci work * parser: improve README, fix function parameters parsing | |||
