From 3442a2c5bbbf5ec604ef104e9ab92912db98f222 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 24 Mar 2023 02:10:55 -0400 Subject: Update index solver --- tnslc/simple.tnsl | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'tnslc/simple.tnsl') diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl index 6ac7f31..b55be2a 100644 --- a/tnslc/simple.tnsl +++ b/tnslc/simple.tnsl @@ -1,14 +1,12 @@ -struct Test { - int i -} - -/; method Test - /; whatever [int] - return self.i - ;/ -;/ +{}uint8 str1 = "abcd" +{}uint8 str2 = "abcd" /; main [int] + /; loop (int i = 0; i < 4) [i++] + /; if (str1{i} !== str2{i}) + return 1 + ;/ + ;/ return 0 -;/ \ No newline at end of file +;/ -- cgit v1.2.3