summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-22 11:24:50 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-22 11:24:50 +0200
commit842069b5605d48e3cb9134fa6b119b178d1ae566 (patch)
treefbb61def0a31e7762f741f4b7106498886413b86
parent3ee20b6b9b0dee56f4ffcb8b80c8b8390589a5f6 (diff)
starting work on arithmetic
-rw-r--r--docs/DEVNOTES.md3
-rw-r--r--src/syntax.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/DEVNOTES.md b/docs/DEVNOTES.md
index 02ba0cc..f0b2292 100644
--- a/docs/DEVNOTES.md
+++ b/docs/DEVNOTES.md
@@ -2,10 +2,9 @@
# TODO
## CURRENT
-- add sourcing
+- arithmetic
## NEXT
-- arithmetic
- fd-based redirects
## LATER
diff --git a/src/syntax.h b/src/syntax.h
index cf8ce3f..0b5396c 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -15,6 +15,7 @@ typedef enum {
typedef enum {
ARITHM_INT_LIT,
ARITHM_BINOP,
+ ARITHM_VAR,
} ArithmNodeKind;
typedef struct ArithmNode ArithmNode;
@@ -30,6 +31,7 @@ struct ArithmNode {
} binop;
} as;
};
+
DECLARE_VEC(ArithmNode, ArithmNodeVec)