First page Back Continue Last page Overview Graphics
Description language
Use Python syntax!
tokenize module to parse
650 lines of code to generate Python
2,500 lines of protocol description
41,000 lines of generated code
- with comments
- with checking
- with introspection
Notes:
One question was why code generation into classes was used instead of just running off the descriptions at runtime. The simple answer is because I have always done it that way, and it seemed right. Sometimes old habits from other programming languages die hard!