ferogram-tl-parser
Parser for Telegram's TL (Type Language) schema files.
Reads .tl schema files and produces a structured AST. Used internally by ferogram-tl-gen as a build-dependency - most users don't depend on this crate directly.
Installation
[]
= "0.4.8"
AST Types
Usage
use ;
// Collect all definitions
let schema = read_to_string.unwrap;
let definitions = parse_tl_file.unwrap;
// Streaming iterator (lower memory)
for def in new
Parse errors return ParseError with the failing line. Malformed tokens stop the iterator rather than silently skipping.
Stack position
ferogram-tl-types
└ ferogram-tl-gen
└ ferogram-tl-parser <-- here
License
MIT or Apache-2.0, at your option. See LICENSE-MIT and LICENSE-APACHE.
Ankit Chaubey - github.com/ankit-chaubey