mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
23 lines
384 B
Plaintext
23 lines
384 B
Plaintext
# Test that structs containing arrays work correctly
|
|
|
|
from lexer_example import foo_lexer
|
|
|
|
@with_lexer(foo_lexer)
|
|
grammar foo_grammar {
|
|
@main_rule main_rule <- list+(Example("example"))
|
|
}
|
|
|
|
@abstract
|
|
class FooNode implements Node[FooNode] {
|
|
@exported
|
|
fun get(): KV = KV(key="So", value="What")
|
|
}
|
|
|
|
class Example: FooNode {
|
|
}
|
|
|
|
struct KV {
|
|
key: String
|
|
value: String
|
|
}
|