aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-08 01:20:37 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-08 01:20:37 +0100
commit7dbb2831b81ff0174054d30b1fc105b2113c272d (patch)
treefde5c878e2c9a89e6f41c8535034e1b16927c154 /parser.h
parent1707fcabca80e2e664bef9c02ec5cc9d793ce37b (diff)
downloadsciteco-7dbb2831b81ff0174054d30b1fc105b2113c272d.tar.gz
added support for labels, including the goto label table
* uses BSD tree macros, might later be abstracted to a C++ table class
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 007b942..3eba297 100644
--- a/parser.h
+++ b/parser.h
@@ -50,4 +50,22 @@ private:
State *custom(gchar chr);
};
+#include "goto.h"
+
+extern gint macro_pc;
+
+extern struct States {
+ StateStart start;
+ StateLabel label;
+} states;
+
+extern enum Mode {
+ MODE_NORMAL = 0,
+ MODE_PARSE_ONLY
+} mode;
+
+extern gchar *strings[2];
+
+bool macro_execute(const gchar *macro);
+
#endif