Added a .tl file tokenizer and parser

A TLObject class has been added, as well as a method for tokenizen .tl files.
A TLObject can be created by simply calling `TLObject.from_tl(tl_line)`,
  this will tokenize the .tl line and return a new TLObject with all
  the required properties extracted.
Also added another method to load .tl files and yield TLObjects, including
  a SourceBuilder that can be later used to generate Python code.
This commit is contained in:
Lonami
2016-08-26 19:12:20 +02:00
parent 1dac866118
commit 1974569927
8 changed files with 1204 additions and 1 deletions
View File