aboutsummaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/parser.h b/parser.h
index 4e4699e..92a8eb3 100644
--- a/parser.h
+++ b/parser.h
@@ -10,19 +10,25 @@ typedef struct {
char **vnames;
stack_t *stack;
uint32_t stidx;
- char **lines;
+ variable ***lines;
uint32_t lnidx;
- uint8_t indent;
+ int8_t indent;
+ uint8_t sindent;
variable *ret;
} interpreter;
+#define SKIP (1 << 7)
+
typedef int (*func_t)(interpreter *);
void iinit(interpreter *);
+void iend(interpreter *it);
+
+void iskip(interpreter *it);
-void inew_string(interpreter *, const char *, char *);
-void inew_integer(interpreter *, const char *, int32_t);
-void inew_float(interpreter *, const char *, float);
+variable *inew_string(interpreter *, const char *, char *);
+variable *inew_integer(interpreter *, const char *, int32_t);
+variable *inew_float(interpreter *, const char *, float);
void inew_cfunc(interpreter *, const char *, func_t);
int idoline(interpreter *, const char *);