Files
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

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'])