X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=parsing.py;h=42f0ec82a0e890a5ec876b200d7037aac6c31f25;hp=6734af7c4ddb226e729162a06a6378910f83ff07;hb=b059a00e0e2511a2ca2477db1e91d53fc5d2ec0f;hpb=d6af7d074bf65e782e42055623a197863b5f8000 diff --git a/parsing.py b/parsing.py index 6734af7..42f0ec8 100644 --- 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', [ @@ -124,7 +116,7 @@ def _parenthesized_expression_parser(index, tokens): tokens[index].match, )) - return True, index, FurParenthesizedExpression(internal=internal) + return True, index, internal def _negation_expression_parser(index, tokens): failure = (False, index, None)