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

19 lines
400 B
Plaintext

# Check that the file reader APIs work as expected
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
@external()
fun trigger_unit_requested(name: Symbol, found: Bool, error: Bool): Bool
}
class Example: FooNode implements TokenNode {
}