From fc17cc4f755333f182183d09b281471aec5d0cdd Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Sun, 6 Aug 2017 13:24:55 -0400 Subject: [PATCH] Some comments --- parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsing.py b/parsing.py index 6338369..495b34a 100644 --- a/parsing.py +++ b/parsing.py @@ -297,7 +297,7 @@ def _function_call_expression_parser(index, tokens): _expression_parser = _addition_level_expression_parser def _assignment_statement_parser(index, tokens): - # TODO Use a FurSymbolExpression for the target + # TODO Use a FurSymbolExpression for the target? Maybe this is actually not a good idea failure = (False, index, None) if tokens[index].type != 'symbol': @@ -321,6 +321,7 @@ def _assignment_statement_parser(index, tokens): return True, index, FurAssignmentStatement(target=target, expression=expression) def _statement_parser(index, tokens): + # TODO It would be good to include newlines in the parsing of this because it removes the ambiguity between "function(argument)" (one statement) and "function\n(argument)" (two statements) return _or_parser( _assignment_statement_parser, _expression_parser, -- 2.20.1