summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-16 01:41:05 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-03-16 01:41:05 -0400
commitf51b86ff3cf980fa558dfafd24ffd4a327e0890b (patch)
tree75467cc5d765d369a29ce906fe7f93462f4b307d /tnslc/simple.tnsl
parent8ac610f207bd8d94e02bfd43cbba930af7c1a5b3 (diff)
Fairly done with Variable struct
have a bit more to do for 'set' function
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl24
1 files changed, 13 insertions, 11 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index d20bc0e..91e2e91 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -1,14 +1,16 @@
-uint a = 2, b = 4
-{}uint8 str = "Hello", c = "#"
-struct test {
- int i, j,
- bool k,
- uint8 m
-}
+/; module mod
+ uint a = 2, b = 4
+ {}uint8 str = "Hello", c = "#"
+
+ struct test {
+ int i, j,
+ bool k,
+ uint8 m
+ }
+;/
+
/; main [int]
- test i
- i.i = 9
- return i.i
-;/ \ No newline at end of file
+ return 0
+;/