ox

The Ox programming language, compiler and tools (WIP)
Log | Files | Refs | README | LICENSE

commit edce80e2ec802a03a0430ccc70d13f412eb4221a
parent 91424f0abc67e5b7a09958285ce08f1aca48a474
Author: citbl <citbl@citbl.org>
Date:   Sun, 16 Nov 2025 16:35:23 +1000

minor

Diffstat:
M.zed/debug.json | 4++--
MTODO | 2+-
DTODO-2 | 5-----
Atests/ex-print-minus-values.ox | 3+++
4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/.zed/debug.json b/.zed/debug.json @@ -6,8 +6,8 @@ { "label": "Debug native binary", "build": { - "command": "make check", - "args": [], + "command": "make", + "args": ["check"], "cwd": "$ZED_WORKTREE_ROOT" }, "program": "$ZED_WORKTREE_ROOT/oxc", diff --git a/TODO b/TODO @@ -4,7 +4,7 @@ [x] conditionals (basic) [x] loops (basic) [x] handle for loop with `i = i + 1` and `i += 1` (see ex-for-simple2 and TODO NODE_BINARY_EXPR) -[ ] printing `-5` crashes, I think parsing is wrong for `-`, sees as value 5 +[/] printing `-5` crashes, I think parsing is wrong for `-`, sees as value 5 [ ] print allow format or more than 1 arg [ ] print anything else than a string [ ] call another function from main, that prints something, handle return see todo diff --git a/TODO-2 b/TODO-2 @@ -1,5 +0,0 @@ - - -when we get into a block that is a function body, - we should reference the variables that were passed - as defined per signature. diff --git a/tests/ex-print-minus-values.ox b/tests/ex-print-minus-values.ox @@ -0,0 +1,3 @@ +void main() { + print(-5); +}