summaryrefslogtreecommitdiff
path: root/src/lib/syntax.c
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-08-21 10:55:30 +0000
committerpeter <peter@pmikkelsen.com>2026-08-21 10:55:30 +0000
commit8af7b7fc0a8dbe3502a7cd43c6a10fdcc6013677 (patch)
tree68f2456a9f31044ca088a26a2c3306c98e6cce2b /src/lib/syntax.c
parent86feda786f115cb4468957f00b8968b986ed7c54 (diff)
Start working on the scanner.
For now, all that is implemented is some functionality which imports UTF-8 into the memory managed by aplwc, after checking that the data is in fact valid UTF-8. FossilOrigin-Name: c861e88777d8180cb7b37c11fc7016a900f9d5821a7e3c8e8aab54118d2fca94
Diffstat (limited to 'src/lib/syntax.c')
-rw-r--r--src/lib/syntax.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/syntax.c b/src/lib/syntax.c
new file mode 100644
index 0000000..c1a5a85
--- /dev/null
+++ b/src/lib/syntax.c
@@ -0,0 +1,9 @@
+#include "aplwc_internal.h"
+
+struct token_list *
+scan_line(struct aplwc *aplwc, struct string *text)
+{
+ aplwc->last_error = APLWC_NOT_YET_IMPLEMENTED;
+ UNUSED_PARAMETER(text);
+ return NULL;
+}