summaryrefslogtreecommitdiff
path: root/src/core/parser/ParserStack.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-03 02:28:30 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-03 02:28:30 +0100
commit7060df78f37f0d75e32212f24e2327069f5dea94 (patch)
treee3cd3748c5b98f20330a50a35addd7199e84334b /src/core/parser/ParserStack.hpp
parent4284cda04b3a1b1f4c5d4368cc8663d01b6925c6 (diff)
Added "deduceState" function
Diffstat (limited to 'src/core/parser/ParserStack.hpp')
-rw-r--r--src/core/parser/ParserStack.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/parser/ParserStack.hpp b/src/core/parser/ParserStack.hpp
index 7ad3da1..8561d42 100644
--- a/src/core/parser/ParserStack.hpp
+++ b/src/core/parser/ParserStack.hpp
@@ -271,6 +271,20 @@ public:
const std::multimap<std::string, const ParserState *> &states);
/**
+ * Tries to reconstruct the parser state from the Scope instance of the
+ * ParserContext given in the constructor. This functionality is needed for
+ * including files,as the Parser of the included file needs to be brought to
+ + an equivalent state as the one in the including file.
+ *
+ * @param scope is the ParserScope instance from which the ParserState
+ * should be reconstructed.
+ * @param logger is the logger instance to which error messages should be
+ * written.
+ * @return true if the operation was sucessful, false otherwise.
+ */
+ bool deduceState();
+
+ /**
* Returns the state the ParserStack instance currently is in.
*
* @return the state of the currently active Handler instance or STATE_NONE