summaryrefslogtreecommitdiff
path: root/tnslc/util.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-05-02 02:57:49 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-05-02 02:57:49 -0400
commit46aa6b65376ea62deb1d5ea1611b59dc222a5141 (patch)
treee92b26bc2d2653b9009a230ee1d6b7ed1185e3a0 /tnslc/util.tnsl
parent9478e157ec2cfe4de704b3bd78b07aee8824774f (diff)
[TNSLC] AST Updates
- Change how string_equate works - Call AST Node generator from main - Flush out ast.tnsl - Add a few initial methods to AST - Move some code from token.tnsl to parse.tnsl
Diffstat (limited to 'tnslc/util.tnsl')
-rw-r--r--tnslc/util.tnsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tnslc/util.tnsl b/tnslc/util.tnsl
index a29d544..f1644e7 100644
--- a/tnslc/util.tnsl
+++ b/tnslc/util.tnsl
@@ -18,13 +18,13 @@
Utility functions that may be useful in many places.
#/
-/; string_equate(~{}charp s1, s2) [bool]
- /; if (len s1` !== len s2`)
+/; string_equate({}charp s1, s2) [bool]
+ /; if (len s1 !== len s2)
;return false
;/
- /; loop (int i = 0; i < len s1`) [i++]
- /; if (s1`{i} !== s2`{i})
+ /; loop (int i = 0; i < len s1) [i++]
+ /; if (s1{i} !== s2{i})
;return false
;/
;/