summaryrefslogtreecommitdiff
path: root/src/lib/aplwc_internal.h
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-08-22 17:25:54 +0000
committerpeter <peter@pmikkelsen.com>2026-08-22 17:25:54 +0000
commitdc9b7f961d1c5f39a07085c9dbad8d94bbacde70 (patch)
tree5f22d024bfc2d8813947c1f1700114df9e01a287 /src/lib/aplwc_internal.h
parentefe230205f254fc5369b53d3de2841723beb6ff8 (diff)
Small set of changes to make the tests pass - meaning the scanner understands the code, not much else
FossilOrigin-Name: d21c4a18581a61da466c0fbfdf73881bec55ea01091ef67abda1d10e17f8d358
Diffstat (limited to 'src/lib/aplwc_internal.h')
-rw-r--r--src/lib/aplwc_internal.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/aplwc_internal.h b/src/lib/aplwc_internal.h
index 4ad30f8..33feafb 100644
--- a/src/lib/aplwc_internal.h
+++ b/src/lib/aplwc_internal.h
@@ -3,11 +3,6 @@
#include <aplwc.h>
#include <aplwc_macros.h>
-
-#define RETURN_ERROR(aplwcp, rc, msg) do{ \
- return ((aplwc)->last_error = (rc)); \
- }while(0)
-
#include <assert.h>
#include <stdalign.h>
#include <stdbool.h>
@@ -39,7 +34,9 @@ struct string {
enum token_tag {
TOKEN_TAG_IDENTIFIER,
TOKEN_TAG_NEWLINE,
- TOKEN_TAG_NUMBER
+ TOKEN_TAG_NUMBER,
+ TOKEN_TAG_LEFT_ARROW,
+ TOKEN_TAG_DIAMOND
};
struct token {
@@ -54,6 +51,7 @@ struct token_list {
};
enum value_tag {
+ VALUE_NULL,
VALUE_NUMBER
};