mclangc/tests/parser/enumerations.exp

37 lines
839 B
Plaintext

Program {
ast: Block(
[
Statement(
Enum {
name: Ident(
"Foo",
),
fields: [],
},
),
Statement(
Enum {
name: Ident(
"Bar",
),
fields: [
Ident(
"A",
),
Ident(
"B",
),
Ident(
"C",
),
],
},
),
],
),
structs: {},
enums: {},
types: {},
functions: {},
member_functions: {},
}