Files
Pierre-Marie de Rodat ca751250b4 Introduce the lkt_build_and_run test driver
Transition all relevant testcases to it. In the process, port
docstrings/comments from test.py files to expected_concrete_syntax.lkt
(now test.lkt) sources and fix stylechecks issues there.

(cherry picked from commit e1c4fe5804)
2024-11-28 15:40:33 +00:00

19 lines
385 B
Plaintext

# Check that the file reader APIs work as expected
import lexer_example
@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 {
}