diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-26 23:37:41 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-26 23:37:41 +0200 |
commit | 4dbe7f6f34149502531c60587b565bdb3314b048 (patch) | |
tree | a32ae123dfc2b8f7a92ab6032eb7ce071c84b0c0 /parser.py | |
parent | bc249bc697aad332c70635dc78c77737be7577bb (diff) | |
download | meson-4dbe7f6f34149502531c60587b565bdb3314b048.zip meson-4dbe7f6f34149502531c60587b565bdb3314b048.tar.gz meson-4dbe7f6f34149502531c60587b565bdb3314b048.tar.bz2 |
Can call functions and print text.
Diffstat (limited to 'parser.py')
-rwxr-xr-x | parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -150,8 +150,7 @@ def test_parser(): print(build_ast(code)) def build_ast(code): - if not code.endswith('\n'): - code = code + '\n' + code = code.rstrip() + '\n' lex.lex() parser = yacc.yacc() result = parser.parse(code) |