diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-19 18:20:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-19 18:20:07 +0200 |
commit | 46f4e0cbf53de13fbf3a8d5181fa8b3d56881241 (patch) | |
tree | 2676edbaf4a978d9ec4959ef74505ab75bc31628 | |
parent | Fix grammar doc: _comment: do not accept characters lower than regular blank space (diff) | |
download | libparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.gz libparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.bz2 libparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.xz |
Update todo
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | TODO | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,2 +1,21 @@ Add support for prelexed + %type shall be used to match against a lexical type. + + Some languages may require (or at least it would helpful) + context handling during parsing. For this, rule should + be annotatable to add hooks to the parser, these will be + place before the rule name: @open(function-name) should + call function-name at the beginning of the rule, and + @close(function-name) should call function-name at the + end of the rule. When the parser decides that it took + the wrong path, it will check if either function has + added all callback function for when the node is retracted, + and if so call that function. The two former hooks shall + also be able to call the parser to commit to the path + it's on, which will cause the parser to fall if it needs + to backtrack bejoined that point, this will also allow + the application to take action on parsed rules and + deallocate memory that is no longer needed after that. + The hooks shall also be able to cause the parser to abort. + Add tests |