Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
d60781e2
Commit
d60781e2
authored
Dec 19, 2017
by
di68kap
Browse files
- minimal changes: doc-string of Node; TODO.md added
parent
632a5b76
Changes
2
Hide whitespace changes
Inline
Side-by-side
DHParser/syntaxtree.py
View file @
d60781e2
...
...
@@ -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 an
s
will never change
the length before AST-transformation an
d
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'
]
...
...
TODO.md
0 → 100644
View file @
d60781e2
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment