Commit 3919c6f5 authored by eckhart's avatar eckhart

- Parser classes for Tokens and Whitespace that will already be dropped while parsing

parent 90155151
......@@ -1095,7 +1095,7 @@ class Token(Parser):
class DropToken(Token):
"""
EXPERIMENTAL AND UNTESTED!
EXPERIMENTAL AND UNTESTED! Violates the invariant: str(parse(text)) == text
Parses play text string, but returns EMPTY_NODE rather than the parsed
string on a match.
......@@ -1209,7 +1209,7 @@ class Whitespace(RegExp):
class DropWhitespace(Whitespace):
"""
EXPERIMENTAL AND UNTESTED!
EXPERIMENTAL AND UNTESTED! Violates the invariant: str(parse(text)) == text
Parses whitespace but never returns it. Instead EMPTY_NODE is returned
on a match.
......
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