-
Notifications
You must be signed in to change notification settings - Fork 4
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
testing of generated XMIR is not using our "lints" #938
Comments
@volodya-lombrozo please, check |
@yegor256 It's a good thing actually. Thank you. I will try. |
@volodya-lombrozo pay attention that
You can see how we build it using Xembly, here: https://github.com/objectionary/eo/blob/master/eo-parser/src/main/java/org/eolang/parser/DrProgram.java (maybe you can simply reuse this |
@yegor256 Could you help me with What should I use to verify the generated new StrictXmir(res).inner() or new Program(new StrictXmir(res)).defects() or new Program(new StrictXML(res)).defects() ? |
@volodya-lombrozo while all three are valid, this would be the best choice:
This way you will:
|
@yegor256 Thank you. Understood. |
@yegor256 Still an issue? |
@volodya-lombrozo perfect! |
I suggest using
org.eolang:lints
library (https://github.com/objectionary/lints), which may help JEO validate all XMIR documents generated, for their validity:This way, you will be assured that XMIR is generated strictly by the rules.
The text was updated successfully, but these errors were encountered: