Files
langkit/testsuite/tests/python_api/array-struct-array/expected_concrete_syntax.lkt
2020-04-28 11:48:45 +02:00

19 lines
305 B
Plaintext

import lexer_example
grammar foo_grammar {
@main_rule main_rule <- Example("example")
}
@root_node class FooNode {
}
class Example : FooNode {
@export fun example_holders (): Array[ExampleHolder] =
[ExampleHolder(examples=[self])]
}
struct ExampleHolder {
examples : Array[Example]
}