summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-24 02:17:46 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-03-24 02:17:46 -0400
commit5e0d74b70b15d63993539c07905e0a9ba8117b5b (patch)
tree24c9a908b3d5b4952b453f5884daa28788c1299d /tnslc/simple.tnsl
parent3442a2c5bbbf5ec604ef104e9ab92912db98f222 (diff)
Better character literal parsing
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index b55be2a..b140c7a 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -1,10 +1,13 @@
{}uint8 str1 = "abcd"
-{}uint8 str2 = "abcd"
+{}uint8 str2 = "abce"
/; main [int]
/; loop (int i = 0; i < 4) [i++]
/; if (str1{i} !== str2{i})
+ /; if (str2{i} == 'e')
+ return 3
+ ;/
return 1
;/
;/