Skip to content

Instantly share code, notes, and snippets.

@yfyf
Created December 4, 2013 10:47
Show Gist options
  • Save yfyf/7785654 to your computer and use it in GitHub Desktop.
Save yfyf/7785654 to your computer and use it in GitHub Desktop.
piqi top-level declarations converted with `piqi convert -f piqi -t xml -o example.xml example.piqi`
.module example
.custom-field erlang-type-prefix
.erlang-type-prefix ""
.alias [
.name itemid
.type uint32
]
.record [
.name foobar
.field [ .type itemid ]
]
<?xml version="1.0" encoding="UTF-8"?>
<value>
<module>example</module>
<typedef>
<alias>
<name>itemid</name>
<type>uint32</type>
</alias>
</typedef>
<typedef>
<record>
<name>foobar</name>
<field>
<type>itemid</type>
<mode>required</mode>
</field>
</record>
</typedef>
</value>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment