Implemented init and write code on TLObjects Generator

The code generated by the generator now classifies the output files
in their corresponding categories, also writing their __init__(...)
with documented arguments, and the on_send(...) method
This commit is contained in:
Lonami
2016-08-27 11:59:23 +02:00
parent 1974569927
commit 06832f8108
8 changed files with 310 additions and 37 deletions

View File

@@ -1,8 +1,5 @@
from parser.tl_parser import TLParser
import tlobjects_generator
if __name__ == '__main__':
parser = TLParser()
for tlobject in parser.parse_file('parser/scheme.tl'):
print(tlobject)
tlobjects_generator.generate_tlobjecs()