Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
DHParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
badw-it
DHParser
Commits
ac44f00c
Commit
ac44f00c
authored
Feb 14, 2019
by
di68kap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- MLWCompiler.py: AusgabeTransformation.unmittelbar_danach(). Leicht geändert.
parent
2a9bea38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
DHParser/parse.py
DHParser/parse.py
+1
-1
DHParser/transform.pxd
DHParser/transform.pxd
+4
-2
No files found.
DHParser/parse.py
View file @
ac44f00c
...
...
@@ -1863,7 +1863,7 @@ class AllOf(NaryParser):
else
:
reloc
=
reentry_point
(
text_
,
self
.
skip
)
if
self
.
skip
else
-
1
expected
=
'< '
+
' '
.
join
([
parser
.
repr
for
parser
in
parsers
])
+
' >'
lookahead
=
any
(
isinstance
(
p
,
Lookahead
)
for
p
in
parsers
)
lookahead
=
any
(
[
isinstance
(
p
,
Lookahead
)
for
p
in
parsers
]
)
error
,
err_node
,
text_
=
mandatory_violation
(
self
.
grammar
,
text_
,
lookahead
,
expected
,
self
.
err_msgs
,
reloc
)
results
+=
(
err_node
,)
...
...
DHParser/transform.pxd
View file @
ac44f00c
...
...
@@ -25,7 +25,9 @@ cpdef key_tag_name(node: Node)
cpdef
is_single_child
(
context
:
List
[
Node
])
cpdef
is_named
(
context
:
List
[
Node
])
cpdef
is_anonymous
(
context
:
List
[
Node
])
cpdef
is_whitespace
(
context
:
List
[
Node
])
cpdef
is_insignificant_whitespace
(
context
:
List
[
Node
])
cpdef
contains_only_whitespace
(
context
:
List
[
Node
])
cpdef
is_any_kind_of_whitespace
(
context
:
List
[
Node
])
cpdef
is_empty
(
context
:
List
[
Node
])
cpdef
is_expendable
(
context
:
List
[
Node
])
# cpdef is_token(context: List[Node], tokens: AbstractSet[str] = ?)
...
...
@@ -50,7 +52,7 @@ cpdef collapse(context: List[Node])
# cpdef replace_content_by(context: List[Node], content: str)
cpdef
normalize_whitespace
(
context
)
# cpdef merge_whitespace(context)
cpdef
move_whitespace
(
context
)
# cpdef move_adjacent(context, condition: Callable = ?
)
## cpdef lstrip(context: List[Node], condition: Callable = ?)
## cpdef rstrip(context: List[Node], condition: Callable = ?)
## cpdef strip(context: List[Node], condition: Callable = ?)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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