Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-parser code must come after imports in the generated parser #4

Open
felixp7 opened this issue Sep 23, 2015 · 0 comments
Open

Pre-parser code must come after imports in the generated parser #4

felixp7 opened this issue Sep 23, 2015 · 0 comments

Comments

@felixp7
Copy link

felixp7 commented Sep 23, 2015

See https://gist.github.com/felixplesoianu/90d104fa8ad75b02155b -- if I try to run the generated parser from the command line, I get the following exception:

  File "exprcalc3.py", line 11
    from __future__ import print_function
SyntaxError: from __future__ imports must occur at the beginning of the file

Editing exprcalc3.py accordingly is a trivial workaround, but ideally it shouldn't be needed. Thank you.

jepler added a commit to jepler/yapps that referenced this issue Mar 7, 2018
jepler added a commit to jepler/yapps that referenced this issue Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant