aboutsummaryrefslogtreecommitdiffstats
path: root/optable.h
diff options
context:
space:
mode:
Diffstat (limited to 'optable.h')
-rw-r--r--optable.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/optable.h b/optable.h
index d85ff3d..ebf9a06 100644
--- a/optable.h
+++ b/optable.h
@@ -10,11 +10,19 @@
#define WORD_LEN_LIMIT 255
typedef void (*stackop)(stack *);
+typedef void (*directiveop)(stack *, int len, char* line, int* i);
+
+typedef enum {
+ directive = 0,
+ builtin = 1,
+ script = 2,
+} optype;
typedef struct {
char* word;
- bool isscript;
+ optype optype;
union {
+ directiveop directive;
stackop op;
struct {
char* script;