-
Notifications
You must be signed in to change notification settings - Fork 146
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
ANTLR parsing error messages are not descriptive enough, in PhiMojo
#3370
Comments
@maxonfjvipon Could you take a look, please? It's kinda urgent. |
@volodya-lombrozo the name |
@maxonfjvipon Why doesn't |
@volodya-lombrozo it said here (from you log) |
@maxonfjvipon Missed that, thank you! However, it's still rather cryptic and not very obvious. As I understand, it's a default lexer message. Is it possible to add context to this message? As for the the rest:
It's still important and blocks other issues. |
@volodya-lombrozo according to phi paper: "attribute is ... an english letters starting with a lowercase letter" |
@yegor256 WDYT? Should we add an ability to parse such names |
@maxonfjvipon Could you add this check to the Note: The problem happens on |
@maxonfjvipon no, we should not allow such names in phi grammar (we should reject them both at xmir-to-phi and in phi-to-xmir) |
@volodya-lombrozo this "check" is enabled by grammar itself, it just fails on parsing step |
@yegor256 What about the following names:
? |
Anyway, it is still a relevant question:
|
@volodya-lombrozo any name is fine, as long as it starts with |
@yegor256 you're right |
@volodya-lombrozo still a bug? |
@maxonfjvipon Did you add any checks before the |
@volodya-lombrozo I didn't. |
@maxonfjvipon how about we try to use |
PhiMojo
generates PHI expressions with parsing errorsPhiMojo
One of the integration tests in
jeo-maven-plugin
has the following pipeline:bytecode -> (disassemble)
xmir
->phi
->unphi
->xmir
(assemble) -> bytecode.First of all I generate
App.xmir
fromApp.class
file (disassemble):App.xmir.txt
Then I use
eo:0.39.0:xmir-to-phi
to generateApp.phi
:App.phi.txt
Then I run
eo:0.39.0:phi-to-xmir
to generateApp.xmir
(and it is generated):App.xmir.txt
However, during the
eo:0.39.0:phi-to-xmir
I get the following exception that fails the entire build:Here is the full log
The text was updated successfully, but these errors were encountered: