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

18 lines
373 B
Plaintext

# Test that Symbol bindings in the Python API are properly working
from lexer_example import foo_lexer
@with_lexer(foo_lexer)
grammar foo_grammar {
@main_rule main_rule <- Example(@Identifier)
}
@abstract
class FooNode implements Node[FooNode] {
}
class Example: FooNode implements TokenNode {
@exported
fun id_sloc(l: SourceLocation): SourceLocation = l
}