mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
13 lines
202 B
Plaintext
13 lines
202 B
Plaintext
import lexer_example
|
|
@with_lexer(foo_lexer)
|
|
grammar foo_grammar {
|
|
@main_rule main_rule <- Example("example")
|
|
|
|
}
|
|
|
|
@abstract class FooNode : Node {
|
|
}
|
|
|
|
class Example : FooNode implements TokenNode {
|
|
}
|