From eb3234dad8373af9187d83dc9add305ab49dd9e8 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 25 Dec 2012 19:25:01 +0200 Subject: [PATCH] Empty function call arguments work. --- builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder.py b/builder.py index accc8fc32..778e09f4e 100755 --- a/builder.py +++ b/builder.py @@ -118,7 +118,7 @@ def p_args_single(t): def p_args_none(t): 'args :' - pass + t[0] = [] def p_error(t): print('Parser errored out at: ' + t.value) @@ -141,6 +141,7 @@ def test_lexer(): def test_parser(): code = """func_call('something', 'or else') objectname.methodname(abc) + emptycall() """ lexer = lex.lex() parser = yacc.yacc()