mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-24 21:05:19 +00:00
156402e504
The old code prints the result of parsing (list of expression dictionaries), and partial results of semantic analysis (list of enum dictionaries, list of struct dictionaries). The new code prints a trace of a schema visit, i.e. what the back-ends are going to use. Built-in and array types are omitted, because they're boring. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
13 lines
307 B
Plaintext
13 lines
307 B
Plaintext
object TestBase
|
|
member enum1: TestEnum optional=False
|
|
enum TestEnum ['value1', 'value2']
|
|
object TestTypeA
|
|
member string: str optional=False
|
|
object TestTypeB
|
|
member integer: int optional=False
|
|
object TestUnion
|
|
base TestBase
|
|
tag enum1
|
|
case value1: TestTypeA
|
|
case value2: TestTypeB
|