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

JEO xmir Format Documentation #716

Open
volodya-lombrozo opened this issue Sep 19, 2024 · 2 comments
Open

JEO xmir Format Documentation #716

volodya-lombrozo opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@volodya-lombrozo
Copy link
Member

Originally issue comes from this comments:

#687 (comment)

@volodya-lombrozo I understand. How about we make JEO more strict by writing the documentation for it. Basically, we must explain to the users of JEO-output what is possible to do with it in order to keep it understandable by JEO. If you publish such a documentation, we will make sure our normalizations/optimizations send to JEO only the XMIR it is prepared for.

and #687 (comment)

@volodya-lombrozo XSD is a rather weak format, it won't allow you to define complex rules. It's mostly about types of data. Maybe a collection of XPath assertions (both "positive" that must be in the incoming XMIR and "negative" that are not allowed). Just an idea.

We should write documentation about xmir generated by jeo-maven-plugin. Also, it's important to add xsd file that would check xmir before even trying to parse it.

BTW, we can try to generate documentation directly from xsd file.

@volodya-lombrozo volodya-lombrozo added bug Something isn't working documentation Improvements or additions to documentation labels Sep 19, 2024
@yegor256
Copy link
Member

yegor256 commented Dec 3, 2024

@volodya-lombrozo I believe, this problem is solved. Our XMIR is much more detailed now and strict: https://www.eolang.org/XMIR.xsd Its documentation is here: https://www.eolang.org/XMIR.html Moreover, we have a list of lints now, on top of XMIR: https://github.com/objectionary/lints/

@volodya-lombrozo
Copy link
Member Author

@yegor256 It's the issue related to xmir generated by jeo. Not for xmir in general. I suppose this XSD for jeo should have a narrow definition. For example, we can mention where opcodes are placed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants