summaryrefslogtreecommitdiff
path: root/testdata/p02
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-09-04 16:58:15 +0200
committerMarc Vertes <mvertes@free.fr>2023-09-04 16:58:15 +0200
commit4241593b42bffac2f8fcb63f1e88621fe025e360 (patch)
tree48680879982947524e1b028e179608bb5cbcda23 /testdata/p02
parent8feddd9b3eefb920c4a0c7a5b4c3b8ae160f3c71 (diff)
codegen: add interpreter tests
Also simplify project structure. The executable is now produced in the root directory. Work in progress.
Diffstat (limited to 'testdata/p02')
-rw-r--r--testdata/p027
1 files changed, 7 insertions, 0 deletions
diff --git a/testdata/p02 b/testdata/p02
new file mode 100644
index 0000000..1aeb4a9
--- /dev/null
+++ b/testdata/p02
@@ -0,0 +1,7 @@
+a := 1
+
+if a < 2 {
+ println("yep")
+}
+
+println("ok")