summaryrefslogtreecommitdiff
path: root/nl/simple.nl
diff options
context:
space:
mode:
Diffstat (limited to 'nl/simple.nl')
-rw-r--r--nl/simple.nl20
1 files changed, 20 insertions, 0 deletions
diff --git a/nl/simple.nl b/nl/simple.nl
new file mode 100644
index 0000000..699fec2
--- /dev/null
+++ b/nl/simple.nl
@@ -0,0 +1,20 @@
+type int = i32;
+type char = i8;
+
+int g_var;
+
+int main(i32 argc, ptr(ptr(i8)) argv) {
+ //int i = g_var;
+ int i = 40;
+ //i = g_var + 2 + 3;
+ int a = i + 2;
+ if (a == 41) {
+ return 10;
+ } else {
+ a = 20;
+ }
+ while (a < 42) {
+ a = a + 1;
+ }
+ return a;
+}