Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
/ SharpTL.Compiler Public archive

Compiles a TL-schema defined in [Type Language] (or JSON equivalent) to C# object model attributed for using with [SharpTL] serialization library.

License

Notifications You must be signed in to change notification settings

lessneek/SharpTL.Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpTL.Compiler

Compiles a TL-schema defined in Type Language (or JSON equivalent) to C# object model attributed for using with SharpTL serialization library.

Usage example:

SharpTL.Compiler.CLI.exe compile -t json -s telegram.json -ns SharpTelegram.Schema -mn Telegram -impl

This command produces 2 files:

  • SharpTelegram.Schema.cs schema types and methods interfaces.
  • SharpTelegram.Schema.MethodsImpl.cs schema methods implementation (generated only with -impl arg). In order to compile this file, SharpMTProto library must be referenced.

About

Compiles a TL-schema defined in [Type Language] (or JSON equivalent) to C# object model attributed for using with [SharpTL] serialization library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published