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

19 lines
340 B
Plaintext

# Check that external exceptions are correctly propagated in the Python API
from lexer_example import foo_lexer
@with_lexer(foo_lexer)
grammar foo_grammar {
@main_rule main_rule <- Example("example")
}
@abstract
class FooNode implements Node[FooNode] {
@exported
@external()
fun prop(): Int
}
class Example: FooNode {
}