summaryrefslogtreecommitdiff
path: root/src/core/interpret.c
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-11-09 12:10:09 +0000
committerPaul Buetow <paul@buetow.org>2008-11-09 12:10:09 +0000
commit1be344574cb24e30e13fdc23b2cece65b14ff199 (patch)
tree3d55b5c6174885cc82acacf6ccfd5bc81d61cb24 /src/core/interpret.c
parent3c8a930c790976bb98ea0abeb144f2757ca1cc30 (diff)
splitted function.c into function.c and functions.c
Diffstat (limited to 'src/core/interpret.c')
-rw-r--r--src/core/interpret.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/interpret.c b/src/core/interpret.c
index 65e5fee..2853fa8 100644
--- a/src/core/interpret.c
+++ b/src/core/interpret.c
@@ -36,7 +36,7 @@
#include "../defines.h"
#include "convert.h"
-#include "function.h"
+#include "functions.h"
#include "symbol.h"
#define _INTERPRET_ERROR(m,t) \
@@ -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:
{
@@ -975,7 +975,7 @@ _term(Interpret *p_interpret) {
array_unshift(p_array, stack_pop(p_interpret->p_stack));
}
-
+
_NEXT
}