Empty function call arguments work.

pull/15/head
Jussi Pakkanen 12 years ago
parent d86b664b28
commit eb3234dad8
  1. 3
      builder.py

@ -118,7 +118,7 @@ def p_args_single(t):
def p_args_none(t): def p_args_none(t):
'args :' 'args :'
pass t[0] = []
def p_error(t): def p_error(t):
print('Parser errored out at: ' + t.value) print('Parser errored out at: ' + t.value)
@ -141,6 +141,7 @@ def test_lexer():
def test_parser(): def test_parser():
code = """func_call('something', 'or else') code = """func_call('something', 'or else')
objectname.methodname(abc) objectname.methodname(abc)
emptycall()
""" """
lexer = lex.lex() lexer = lex.lex()
parser = yacc.yacc() parser = yacc.yacc()

Loading…
Cancel
Save