summaryrefslogtreecommitdiff
path: root/src/core/interpret.c
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-11-07 22:19:48 +0000
committerPaul Buetow <paul@buetow.org>2008-11-07 22:19:48 +0000
commitc33e87f7b07553e999db94ca0ac6529ed1816332 (patch)
tree0b4ca663999e625d7ea26db9dca9aced90c7eca5 /src/core/interpret.c
parenta46655f67043af257e70715903badf9d4321c4de (diff)
renamed stuff
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
}