summaryrefslogtreecommitdiff
path: root/cmd
AgeCommit message (Collapse)Author
2023-09-04codegen: add interpreter testsMarc Vertes
Also simplify project structure. The executable is now produced in the root directory. Work in progress.
2023-08-31codegen: fix interpreter re-entranceMarc Vertes
So multiple successive incremental Evals function correctly. Also improve the following: - Apply the same Eval API to vm0 and vm1 - parser: dot diagram display is now synchronous - codegen: outsource complex code generation for readability - vm1: Pop take the number of values to pop as operand
2023-08-29gint: add an interactive REPLMarc Vertes
2023-08-25gint: simplifyMarc Vertes
2023-08-24codegen: add Interpreter structMarc Vertes
This makes the code easier to use.
2023-08-09codegen: add a bytecode generator (#5)Marc Vertes
* codegen: add a bytecode generator * cleaning scanner, parser and vm1.
2023-07-24vm1: add file pos for debug and a few immediate instructions (#4)Marc Vertes
* vm1: add file pos for debug and a few immediate instructions `op[0]` is now reserved for storing the file position computed at code compiling. No impact on performances. Added `Subi` and `Infi` which use integer immediate argument instead of stack. Experimental. Improves `fib()` speed by ~ 20%. * vm1: add benchmark as proposed by @ajnavarro
2023-07-10first commitMarc Vertes