summaryrefslogtreecommitdiff
path: root/src/core/interpret.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/interpret.c')
-rw-r--r--src/core/interpret.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/core/interpret.c b/src/core/interpret.c
index cc1d87f..37906e4 100644
--- a/src/core/interpret.c
+++ b/src/core/interpret.c
@@ -467,7 +467,7 @@ _expression(Interpret *p_interpret) {
_CHECK TRACK
if (_expression_(p_interpret)) {
- TokenType tt = p_interpret->tt;
+ TokenType tt = p_interpret->tt;
if (tt == TT_SEMICOLON || tt == TT_NONE) {
_NEXT
@@ -806,13 +806,13 @@ _term(Interpret *p_interpret) {
case TT_DOUBLE:
case TT_ARRAY:
stack_push(p_interpret->p_stack, p_interpret->p_token);
- // Checks if the term is the last element of an array
- // say ["element"] # The "element"
- // or of a function
- // func foo { say 1 } # The 1
- if (_NEXT_TT != TT_PARANT_AR && _NEXT_TT != TT_PARANT_CR)
- _NEXT
- return (1);
+ // Checks if the term is the last element of an array
+ // say ["element"] # The "element"
+ // or of a function
+ // func foo { say 1 } # The 1
+ if (_NEXT_TT != TT_PARANT_AR && _NEXT_TT != TT_PARANT_CR)
+ _NEXT
+ return (1);
case TT_IDENT:
{
@@ -824,7 +824,8 @@ _term(Interpret *p_interpret) {
if (_HAS_NEXT) {
_NEXT
- if (_expression_(p_interpret));
+ //if (_expression_(p_interpret));
+ _expression_(p_interpret);
} else {
_SKIP
@@ -974,7 +975,7 @@ _term(Interpret *p_interpret) {
array_unshift(p_array, stack_pop(p_interpret->p_stack));
}
-
+
_NEXT
}