mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
- 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
11 lines
179 B
Python
11 lines
179 B
Python
import libfoolang as lfl
|
|
|
|
|
|
class App(lfl.App):
|
|
def process_unit(self, unit):
|
|
unit.root.dump()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
App.run(['input3', 'input1', 'input2'])
|