From b0fb30d09c592d93db5d1cc403dcd6744d083d78 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 20 Sep 2022 00:40:13 -0400 Subject: Add ability to splice own asm code in --- tnslc/dummy.tnsl | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'tnslc/dummy.tnsl') 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 -- cgit v1.2.3