Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
3f663703
Commit
3f663703
authored
Mar 10, 2018
by
eckhart
Browse files
small adjustments in transform.py
parent
1b7c3ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/transform.py
View file @
3f663703
...
...
@@ -561,7 +561,7 @@ def replace_parser(context: List[Node], name: str):
Parameters:
context: the context where the parser shall be replaced
name: "NAME:PTYPE" of the surogate. The ptype is optional
name: "NAME:PTYPE" of the sur
r
ogate. The ptype is optional
"""
node
=
context
[
-
1
]
name
,
ptype
=
(
name
.
split
(
':'
)
+
[
''
])[:
2
]
...
...
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