diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-05-02 02:57:49 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-05-02 02:57:49 -0400 |
commit | 46aa6b65376ea62deb1d5ea1611b59dc222a5141 (patch) | |
tree | e92b26bc2d2653b9009a230ee1d6b7ed1185e3a0 /tnslc/util.tnsl | |
parent | 9478e157ec2cfe4de704b3bd78b07aee8824774f (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.tnsl | 8 |
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 ;/ ;/ |