tdlib-rs icon indicating copy to clipboard operation
tdlib-rs copied to clipboard

Document enums

Open melix99 opened this issue 3 years ago • 3 comments

Currently this is the missing piece for having a 100% documented library. To do that we need to parse the "@class" tag in the .tl file first.

melix99 avatar Mar 26 '22 01:03 melix99

Hi! Perhaps I could help?

What do you think about porting parser to use something like https://github.com/Geal/nom ?

I could rewrite parser to produce full AST including @ Class definitions.

I have experience with parsing .tl files using parser combinators: https://github.com/egramtel/tdsharp/blob/master/TdLib.CodeGen/Parser.fs (.NET / C# / F#)

x2bool avatar May 16 '22 15:05 x2bool

Having full AST could also help with removing 1-variant enums https://github.com/melix99/tdlib-rs/issues/14

x2bool avatar May 16 '22 15:05 x2bool

Hi! Perhaps I could help?

What do you think about porting parser to use something like https://github.com/Geal/nom ?

I could rewrite parser to produce full AST including @ Class definitions.

I have experience with parsing .tl files using parser combinators: https://github.com/egramtel/tdsharp/blob/master/TdLib.CodeGen/Parser.fs (.NET / C# / F#)

Hi!

I think that would be great! I'd be more than happy to review/merge that.

melix99 avatar May 16 '22 15:05 melix99