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

Empty grammar results in cryptic exception #40

Open
johtso opened this issue Sep 12, 2013 · 0 comments
Open

Empty grammar results in cryptic exception #40

johtso opened this issue Sep 12, 2013 · 0 comments

Comments

@johtso
Copy link

johtso commented Sep 12, 2013

    def moduleFromGrammar(source, className, modname, filename):
        mod = module(modname)
        mod.__name__ = modname
        mod.__loader__ = GeneratedCodeLoader(source)
>       code = compile(source, filename, "exec")
E         File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 5
E           if Grammar.globals is not None:
E            ^
E       IndentationError: expected an indented block
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