Open Nava2 opened 7 years ago
This sounds great to me. We need to preserve backwards compatibility, however. Will that be a problem?
On Jan 30, 2017, at 12:11 PM, Kevin Brightwell notifications@github.com wrote:
Currently, we use a DTD description for CPU files, however, DTDs have largely been deprecated in favour of XSDs.
I started work on this with this file: https://gist.github.com/Nava2/3cd7b418ee9030e6b6d71e2b715b19f6
This allows for several features:
• The order of elements can be constrained in different ways, for example, grouping MicroInstructions and Modules and inside there, order is irrelevant. • Support in IntelliJ makes this handy • Better typing support Rather than working on this by hand, though. It is probably better to use JAXB annotations.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
XSD has the excellent feature of allowing for "optional" tags, so nope! Shouldn't be. Also, the XSD would only be validated when used with new versions, old one still falling back to the older version. Ideally, always read old, only write new.
Currently, we use a DTD description for CPU files, however, DTDs have largely been deprecated in favour of XSDs.
I started work on this with this file: https://gist.github.com/Nava2/3cd7b418ee9030e6b6d71e2b715b19f6
This allows for several features:
Rather than working on this by hand, though. It is probably better to use JAXB annotations.