ast_generator/ast
2024-07-29 02:54:28 +02:00

33 lines
361 B
Elm

Statement {
CodeBlock(CodeBlock)
Enum(Enum)
Node(Node)
}
CodeBlock(string)
Enum(name: Name, nodes: Node[])
Node(name: Name, params: Param[])
Param {
Named(name: Name, type_: Type)
Unnamed(Type)
}
Type {
Name(Name)
Optional(Type)
Multiple(Type)
}
Name(
string,
line: number,
col: number,
)
// vim: syntax=elm