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

21 lines
487 B
Plaintext

# Test that the various wrappers that the Python binding instantiates
# (contexts, units, nodes) are re-used whenever we want to wrap unique C
# values.
import lexer_example
@with_lexer(foo_lexer)
grammar foo_grammar {
@main_rule main_rule <- example_list
example_list <- list+(example)
example <- Example("example" ?pick("(" example_list ")"))
}
@abstract
class FooNode implements Node[FooNode] {
}
class Example: FooNode {
@parse_field examples: ASTList[Example]
}