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

Performance issue in parsing html #380

Closed
chakpongchung opened this issue Dec 25, 2019 · 3 comments
Closed

Performance issue in parsing html #380

chakpongchung opened this issue Dec 25, 2019 · 3 comments

Comments

@chakpongchung
Copy link

chakpongchung commented Dec 25, 2019

Cannot parse the following html

https://bulbapedia.bulbagarden.net/wiki/Ability#List_of_Abilities

using the html grammar from https://github.com/antlr/grammars-v4/tree/master/html

When I tried to generate the parse tree, the plugin in intellij 2019.03 simply stop responding.

@bjansen

@bjansen
Copy link
Collaborator

bjansen commented Dec 25, 2019

Could you be more specific? What grammar are you using? Do you have any errors (OutOfMemoryException maybe)?

@bjansen
Copy link
Collaborator

bjansen commented Dec 25, 2019

How do you generate the parse tree? Do you copy/paste HTML in the ANTLR Preview window?

@bjansen
Copy link
Collaborator

bjansen commented Dec 26, 2019

The same HTML document is also slow to parse from the CLI using grun HTML htmlDocument ~/Downloads/Ability.html, so the issue is likely due to the grammar itself, not to the IntelliJ plugin. Please open an issue at https://github.com/antlr/grammars-v4/issues instead.

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

2 participants