Antlr4: [Javascript Target] How to get errors and not show in console?

Created on 5 Mar 2016  Â·  4Comments  Â·  Source: antlr/antlr4

Hi,

How can I disable the messages in console and get the errors in parser? Just like a "try catch"...

Or I need to implement my own ErrorStrategy to do this?

Most helpful comment

Sorry, but I just ask it because I'm interested to make some code examples for this if doesn't exist and send a PR...

But ok, I'm going to Google groups.

Thks

All 4 comments

Hi,

you either need to install your own error listener, or implement your own error strategy.

Eric

Le 5 mars 2016 à 12:44, Arthur Fücher [email protected] a écrit :

Hi,

How can I disable the messages in console and get the errors in parser? Just like a "try catch"...

Or I need to implement my own ErrorStrategy to do this?

—
Reply to this email directly or view it on GitHub https://github.com/antlr/antlr4/issues/1126.

Ok!

There is any place a documentation of this? Or examples?

This is not the place for support, go to our google antlr discussion group.

Le 6 mars 2016 à 06:26, Arthur Fücher [email protected] a écrit :

Ok!

There is any place a documentation of this? Or examples?

—
Reply to this email directly or view it on GitHub https://github.com/antlr/antlr4/issues/1126#issuecomment-192752556.

Sorry, but I just ask it because I'm interested to make some code examples for this if doesn't exist and send a PR...

But ok, I'm going to Google groups.

Thks

Was this page helpful?
0 / 5 - 0 ratings