projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just pass through the internals of parentheses, unwrapped
[fur]
/
parsing.py
diff --git
a/parsing.py
b/parsing.py
index
6734af7
..
42f0ec8
100644
(file)
--- a/
parsing.py
+++ b/
parsing.py
@@
-64,14
+64,6
@@
FurNegationExpression = collections.namedtuple(
],
)
],
)
-# TODO We don't need to wrap this type
-FurParenthesizedExpression = collections.namedtuple(
- 'FurParenthesizedExpression',
- [
- 'internal',
- ],
-)
-
FurInfixExpression = collections.namedtuple(
'FurInfixExpression',
[
FurInfixExpression = collections.namedtuple(
'FurInfixExpression',
[
@@
-124,7
+116,7
@@
def _parenthesized_expression_parser(index, tokens):
tokens[index].match,
))
tokens[index].match,
))
- return True, index,
FurParenthesizedExpression(internal=internal)
+ return True, index,
internal
def _negation_expression_parser(index, tokens):
failure = (False, index, None)
def _negation_expression_parser(index, tokens):
failure = (False, index, None)