summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-14 02:23:06 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-14 02:23:06 -0400
commit6a64c6f33f345b88bf6f7fcbe18f7757706a9976 (patch)
tree3ee061b11db9001f784299e9bf2964f4829d78cf /tnslc/tnslc.tnsl
parentd850bd17e2533179bfbc2dd6cd8d0c11a43786ba (diff)
Change inc/dec
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl12
1 files changed, 3 insertions, 9 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index 1ad73f6..5248a29 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -3062,13 +3062,13 @@
;return _eval_dot(tok, ~start, max, out, mov, current, scope, t, layer)
;/
- ;layer` = layer` + 1
;Variable s1, s2
/; if (first == start)
;s1 = _eval_value(tok, first + 1, max, out, mov, current, scope, t, layer)
;; else if (first == max - 1)
;s1 = _eval_value(tok, start, first, out, mov, current, scope, t, layer)
;; else
+ ;layer` = layer` + 1
/; if (tok`{first}.cmp("="))
;layer` = layer` - 1
;/
@@ -3084,9 +3084,9 @@
;/
;log_debug(string_add("Calculated s2 as ", s2.sprint()))
+ ;layer` = layer` - 1
;/
- ;layer` = layer` - 1
-
+
;log_debug(string_add("Calculated s1 as ", s1.sprint()))
/; if (tok`{first}.cmp("="))
@@ -3107,18 +3107,12 @@
# Inc and dec
/; else if (tok`{first}.cmp("++") || tok`{first}.cmp("--"))
- ;wk.data_type = s1.data_type
- ;wk.set(s1, out)
-
/; if (tok`{first}.cmp("++"))
;s1.inc(out)
;; else
;s1.dec(out)
;/
- /; if (first == max - 1)
- ;return wk
- ;/
;return s1
;/