summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
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 /CMakeLists.txt
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 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18aaeb1..37e06d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,6 +29,7 @@ target_compile_options(common INTERFACE
--coverage
-fcondition-coverage
-DAPLWC_BUILD_TYPE_COVERAGE
+ -DNDEBUG
>
$<$<CONFIG:Release>:
@@ -47,8 +48,11 @@ target_link_options(common INTERFACE
)
add_library(aplwc
+ src/lib/eval.c
src/lib/main.c
src/lib/memory.c
+ src/lib/string.c
+ src/lib/syntax.c
)
target_link_libraries(aplwc PRIVATE common)
@@ -75,6 +79,11 @@ set_tests_properties("aplwc-repl-tiny" PROPERTIES
WILL_FAIL TRUE
)
+add_test(NAME "aplwc-repl-large" COMMAND "aplwc-repl")
+set_tests_properties("aplwc-repl-large" PROPERTIES
+ ENVIRONMENT "APLWC_MEM=64000"
+)
+
add_test(NAME "aplwc-repl-emptyvar" COMMAND "aplwc-repl")
set_tests_properties("aplwc-repl-emptyvar" PROPERTIES
ENVIRONMENT "APLWC_MEM="