diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-08 01:20:37 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-08 01:20:37 +0100 |
commit | 7dbb2831b81ff0174054d30b1fc105b2113c272d (patch) | |
tree | fde5c878e2c9a89e6f41c8535034e1b16927c154 /parser.h | |
parent | 1707fcabca80e2e664bef9c02ec5cc9d793ce37b (diff) | |
download | sciteco-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.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |