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

Same input targeting Python3 seems not to terminate (in reasonable time), whereas it does when targeting Java #1185

Closed
gapag opened this issue Apr 29, 2016 · 2 comments

Comments

@gapag
Copy link

gapag commented Apr 29, 2016

Tested on Antlr 4.5.2 & 4.5.3

The grammar/lexer files I provide are generated automatically. I attach also the file example.gf that parses correctly when using the Java target, but seems not to terminate (or at least I did not leave running enough) when using Python3 target.

I really beg your pardon for not giving a more coincise input but 1) I do not have much time as I am using antlr4 for hobby 2) I guess you will have more refined analysis tools to hunt the cause of the problem.

antlrpybug.zip

@gapag gapag changed the title Same input on Python3 seems not to terminate (in reasonable time), whereas it does on Java Same input targeting Python3 seems not to terminate (in reasonable time), whereas it does when targeting Java Apr 29, 2016
@ericvergnaud
Copy link
Contributor

Hi,
thanks for this, but we also provide antlr4 as a hobby.
The antlr4 profiler is only available in Java IntelliJ.
Eric

@gapag
Copy link
Author

gapag commented Apr 30, 2016

I beg your pardon if I sounded rude. It was not my intention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants