10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit ac44f00c authored by di68kap's avatar di68kap

- MLWCompiler.py: AusgabeTransformation.unmittelbar_danach(). Leicht geändert.

parent 2a9bea38
......@@ -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,)
......
......@@ -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 = ?)
......
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