Create demo application

This commit is contained in:
2025-08-10 17:27:23 +01:00
parent 9df53c63c5
commit 6077cf571d
3 changed files with 19 additions and 0 deletions

5
demo/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
add_executable(repl
main.c
)
configure_target(repl)
target_link_libraries(repl PRIVATE imp)

9
demo/main.c Normal file
View File

@@ -0,0 +1,9 @@
#include "repl.h"
static repl_t repl;
int main(void)
{
repl_init(&repl);
return repl_run(&repl);
}