Files
2026-01-20 16:03:43 +00:00

17 lines
371 B
Plaintext

from lexer_example import foo_lexer
@with_lexer(foo_lexer)
grammar foo_grammar {
@main_rule main_rule <- Example("example")
}
class FooNode implements Node[FooNode] {
}
class Example: FooNode {
@exported fun array_of_nodes(): Array[Example] = node.singleton()
@exported fun array_of_arary(): Array[Array[Example]] =
node.singleton().singleton()
}