Commit e3dd4513 authored by di68kap's avatar di68kap
Browse files

Notationsbeschreibung aktualisiert

parent 5a13d4cd
......@@ -28,7 +28,7 @@ cdef class Parser:
# cpdef mixin_comment(whitespace, str)
# cpdef mixin_noempty(whitespace)
# cpdef mixin_nonempty(whitespace)
cdef class Grammar:
cdef dict __dict__
......
......@@ -63,7 +63,7 @@ __all__ = ('ParserError',
'Whitespace',
'DropRegExp',
'mixin_comment',
'mixin_noempty',
'mixin_nonempty',
'MetaParser',
'UnaryParser',
'NaryParser',
......@@ -649,13 +649,13 @@ def mixin_comment(whitespace: str, comment: str) -> str:
return whitespace
def mixin_noempty(whitespace: str) -> str:
def mixin_nonempty(whitespace: str) -> str:
r"""
Returns a regular expression pattern that matches only if the regular
expression pattern `whitespace` matches AND if the match is not empty.
If `whitespace` already matches the empty string '', then it will be
returned unaltered.
If `whitespace` does not match the empty string '', anyway,
then it will be returned unaltered.
WARNING: `non_empty_ws` does not work regular expressions the matched
strings of which can be followed by a symbol that can also occur at
......
Supports Markdown
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