Files
langkit/testsuite/tests/python_api/array-struct-array/expected_concrete_syntax.lkt
2020-06-30 15:43:53 +02:00

20 lines
334 B
Plaintext

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