Skip to content

Conversation

Sofyan-SU
Copy link
Contributor

  • Added a message to LexerNoViableAltException (python2 & 3) : this avoids exception to be raised if the exception message is printed
  • Corrected the ErrorStrategy (Python2) :
    -> notifyErrorListeners first argument should be the message, and second the Offending Token
    -> Exception does not have getMessage method

- Added a message to LexerNoViableAltException (python2 & 3)
- Corrected the ErrorStrategy (Python2) :
notifyErrorListeners first argument should be the message, and second the Offending Token
Exception does not have getMessage method

Signed-off-by: SU Sofyan <sofyan.su@airbus.com>
@ericvergnaud
Copy link
Contributor

Thanks, I am fine with the PR, but you haven't signed off your commit, please follow instructions in https://github.com/antlr/antlr4/blob/master/CONTRIBUTING.md

@Sofyan-SU
Copy link
Contributor Author

Sofyan-SU commented Feb 3, 2023

Commit is now signed.

@ericvergnaud
Copy link
Contributor

@parrt blessed

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

Successfully merging this pull request may close these issues.

3 participants