Files
langkit/testsuite/tests/python_api/python_app/expected_concrete_syntax.lkt
Raphaël AMIARD eff5ae2cd9 T910-014: Improve App
- Allow just subclassing App.process_unit, by providing a default main
  that iterates on units and calls process_unit on each

- Allow passing args to python App programmatically
2020-09-11 17:54:55 +02:00

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 {
}