From c33e87f7b07553e999db94ca0ac6529ed1816332 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 7 Nov 2008 22:19:48 +0000 Subject: renamed stuff --- src/core/interpret.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/core/interpret.c') 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 } -- cgit v1.2.3