mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
19 lines
492 B
Plaintext
19 lines
492 B
Plaintext
# Regression test: check that getting the list of diagnostics and the range of
|
|
# text between two tokens works when Python assertions are disabled. This used
|
|
# not to work because "operational" code was in assert statements in the Python
|
|
# bindings.
|
|
|
|
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] {
|
|
}
|
|
|
|
class Example: FooNode implements TokenNode {
|
|
}
|