summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-09-20 00:40:13 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-09-20 00:40:13 -0400
commitb0fb30d09c592d93db5d1cc403dcd6744d083d78 (patch)
treec14df5e2c674e4350d8f768b272cab74a518259d /tnslc/dummy.tnsl
parentbe9813b1062c1f9b2c0d13a76d56c41ba984c1db (diff)
Add ability to splice own asm code in
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