lex-core 0.8.2

Parser library for the lex format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Output format implementations for AST and token serialization
//!
//! This module contains different format implementations for serializing:
//! - AST Documents to various output formats (tag, treeviz)
//! - Token streams back to source text (detokenizer)

pub mod detokenizer;
pub mod registry;
pub mod tag;
pub mod treeviz;

pub use detokenizer::{detokenize, ToLexString};
pub use registry::{FormatError, FormatRegistry, Formatter};
pub use tag::{serialize_document as serialize_ast_tag, TagFormatter};
pub use treeviz::{to_treeviz_str, TreevizFormatter};