diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 02:28:30 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 02:28:30 +0100 |
commit | 7060df78f37f0d75e32212f24e2327069f5dea94 (patch) | |
tree | e3cd3748c5b98f20330a50a35addd7199e84334b /src/core/parser/ParserStack.hpp | |
parent | 4284cda04b3a1b1f4c5d4368cc8663d01b6925c6 (diff) |
Added "deduceState" function
Diffstat (limited to 'src/core/parser/ParserStack.hpp')
-rw-r--r-- | src/core/parser/ParserStack.hpp | 14 |
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 |