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

implement XML input language #39

Open
soc opened this issue Oct 4, 2022 · 0 comments
Open

implement XML input language #39

soc opened this issue Oct 4, 2022 · 0 comments
Labels
enhancement improving existing functionality feature adding a new feature language-xml changes to the XML language
Milestone

Comments

@soc
Copy link
Collaborator

soc commented Oct 4, 2022

Next step of #27.

Make the compiler understand *.xsd files, such that

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="person">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="firstName" type="xs:string" />
        <xs:element name="lastName" type="xs:string" />
      </xs:sequence>
      <xs:attribute name="age" type="xs:unsignedInt" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>

is accepted as a valid definition of a type Person, that can be instantiated with

<person age="42">
  <firstName>Jane</firstName>
  <lastName>Doe</lastName>
</person>

or

Person(42, "Jane", "Doe")
@soc soc changed the title implement XML inout language implement XML input language Oct 4, 2022
@soc soc added this to the later milestone Oct 4, 2022
@soc soc added enhancement improving existing functionality feature adding a new feature language-xml changes to the XML language labels Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improving existing functionality feature adding a new feature language-xml changes to the XML language
Projects
None yet
Development

No branches or pull requests

1 participant