aboutsummaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-19 18:20:07 +0200
committerMattias Andrée <maandree@kth.se>2021-04-19 18:20:07 +0200
commit46f4e0cbf53de13fbf3a8d5181fa8b3d56881241 (patch)
tree2676edbaf4a978d9ec4959ef74505ab75bc31628 /TODO
parentFix grammar doc: _comment: do not accept characters lower than regular blank space (diff)
downloadlibparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.gz
libparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.bz2
libparser-46f4e0cbf53de13fbf3a8d5181fa8b3d56881241.tar.xz
Update todo
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'TODO')
-rw-r--r--TODO19
1 files changed, 19 insertions, 0 deletions
diff --git a/TODO b/TODO
index c01d809..55801e8 100644
--- a/TODO
+++ b/TODO
@@ -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