mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
18 lines
347 B
Plaintext
18 lines
347 B
Plaintext
# Test the handling of negative indexes in the Python binding of AST nodes
|
|
# child getters.
|
|
|
|
from lexer_example import foo_lexer
|
|
|
|
@with_lexer(foo_lexer)
|
|
grammar foo_grammar {
|
|
@main_rule main_rule <- list+(name)
|
|
name <- Name(@Identifier)
|
|
}
|
|
|
|
@abstract
|
|
class FooNode implements Node[FooNode] {
|
|
}
|
|
|
|
class Name: FooNode implements TokenNode {
|
|
}
|