summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/DocumentHandler.hpp
AgeCommit message (Collapse)Author
2016-04-25Pass "greedy" flag to Handler::startTokenAndreas Stöckel
2016-04-25Pass "isImplicit" flag to Handler::fieldStartAndreas Stöckel
2016-04-25Reimplement closeToken handlingAndreas Stöckel
Idea: Only start unrolling anything on the parser stack if an element that matches the given close token is found. This requires the endToken method in DocumentChildHandler to search for the given descriptor that might be ended. While performing this search, only a specified number of "explicit" structures/fields opened by the Stack class may be skipped (those with implicit default fields). Added an integration test ("python_code") which requires this new (hopefully sane) behaviour.
2016-04-25Store whether the DocumentField is part of an explicit field inside the ↵Andreas Stöckel
"DocumentField" class
2016-04-25First implementation of user defined syntax, many features still missing and ↵Andreas Stöckel
probably many bugs * Implement startToken and endToken in DocumentChildHandler * Implement pushScopeToken, which pushes tokens for the element that is currently on top of the Scope stack onto the token stack * Implement rollbackPath() method (was really needed once in the development process, but only used in one place for now) * Push and pop tokens from stack whenever a new explicit field or command is created/ended. Take advantage of the fact, that the tokens for transparent structures are always included in the token list * Remember pending close tokens in the HandlerInfo structure in StackImpl * Implement handleToken() in StackImpl * Implement readToken() method used by readData() and data() in StackImpl * Check whether there still is data available in handleData() * Plus many more changes in the affected files...
2016-04-25Add getDescriptor method to DocumentField classAndreas Stöckel
2015-03-04Prepared implementation of user defined tokensAndreas Stöckel
2015-03-03Implemented annotation handlingAndreas Stöckel
2015-03-03Storing type and name in the HandlerData once again, using a TokenAndreas Stöckel
Conflicts: application/src/core/parser/stack/Callbacks.hpp
2015-03-02Storing type and name in the HandlerData once again, using a TokenAndreas Stöckel
2015-03-02Implemented new "start" methods in the Handler instancesAndreas Stöckel
2015-03-02Got all handlers compling againAndreas Stöckel
2015-03-01Renamed domain to ontology.Benjamin Paassen
2015-02-25start of branch, commit log will be rewrittenAndreas Stöckel
2015-02-17added some debug information to document handler.Benjamin Paassen
2015-02-16completely reworked document handler to be consistent with OSML and provide ↵Benjamin Paassen
more coherent behaviour in general.
2015-02-15Removed createPath declaration in DocumentHandlerAndreas Stöckel
2015-02-15Declaring States in the Handler classesAndreas Stöckel
2015-02-15Slightly adapted Handler instances to new Handler, once again passing ↵Andreas Stöckel
non-const references to data and start, using "parseGenericString" in DocumentHandler for resolving non-string values, added unit test for testing whether "end()" is not called if "start()" fails.
2015-02-15Included handler classes from masterAndreas Stöckel