aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-24 13:17:24 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-24 13:17:24 -0800
commit5b1a53265233f837e272aa0936267e04c8848856 (patch)
tree844e1b1224d4d00f6bd406e503a832acc77115f9 /parser.h
parentb6af3e51abd54963948d5523ce01459fadedebbf (diff)
Factor execution aspects from parser_t to parse_execution_context_t .
Still searching for best way to use new parser for execution.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index fab73acf..cdb4b590 100644
--- a/parser.h
+++ b/parser.h
@@ -95,6 +95,8 @@ public:
bool skip; /**< Whether execution of the commands in this block should be skipped */
bool had_command; /**< Set to non-zero once a command has been executed in this block */
int tok_pos; /**< The start index of the block */
+
+ node_offset_t node_offset; /* Offset of the node */
/** Status for the current loop block. Can be any of the values from the loop_status enum. */
int loop_status;
@@ -277,6 +279,7 @@ struct parser_context_t
class parser_t
{
+ friend class parse_execution_context_t;
private:
enum parser_type_t parser_type;