Files

16 lines
280 B
Plaintext
Raw Permalink Normal View History

# Test that the bool() operator on nodes works as expected
2026-01-13 14:49:31 +00:00
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] {
}
2020-01-09 13:01:18 +01:00
class Example: FooNode {
}