Files
langkit/testsuite/tests/python_api/array-struct-array/expected_concrete_syntax.lkt

20 lines
334 B
Plaintext
Raw Permalink Normal View History

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]
}