summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r--tnslc/dummy.tnsl31
1 files changed, 2 insertions, 29 deletions
diff --git a/tnslc/dummy.tnsl b/tnslc/dummy.tnsl
index 8fdb165..233d726 100644
--- a/tnslc/dummy.tnsl
+++ b/tnslc/dummy.tnsl
@@ -1,30 +1,3 @@
-; struct Token {
- int
- token_type,
- line,
- col,
-
- ~{}charp
- data
-}
-
-;struct Node {
- Token
- # associated token to the node
- tok,
-
- ~{}Node
- # sub-nodes
- sub
-}
-
-;{}charp cnull = "a"
-
-/; main [int]
- ;{}Node s = {}
- ;Node n = {{1, 2, 3, ~cnull}, ~s}
- ;s.append(n)
- ;tnsl.io.println(~s)
- ;tnsl.io.println(n.sub)
- ;return 0
+/; asm_test
+ ;asm "_start:\n"
;/ \ No newline at end of file