Commit d60781e2 authored by di68kap's avatar di68kap

- minimal changes: doc-string of Node; TODO.md added

parent 632a5b76
......@@ -202,7 +202,7 @@ class Node(collections.abc.Sized):
len (int): The full length of the node's string result if the
node is a leaf node or, otherwise, the concatenated string
result's of its descendants. The figure always represents
the length before AST-transformation ans will never change
the length before AST-transformation and will never change
through AST-transformation. READ ONLY!
pos (int): the position of the node within the parsed text.
......@@ -215,9 +215,8 @@ class Node(collections.abc.Sized):
after parsing.
Other than that, this value should be considered READ ONLY.
At any rate, it should only be reassigned only during
parsing stage and never during or after the
AST-transformation.
At any rate, it should only be reassigned during the parsing
stage and never during or after the AST-transformation.
"""
__slots__ = ['_result', 'children', '_errors', '_len', '_pos', 'parser', 'error_flag']
......
General TODO-List
-----------------
- Position Handling: `Node._pos` and `Node._len` should be set by
parser guard to allow for early dropping of nodes. (Should speed
up tree-traversal later)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment