lex-core 0.17.0

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 serialization
//!
//! This module contains different format implementations for serializing
//! AST Documents to various output formats (tag, treeviz).
//!
//! Token streams are serialized back to source text by the canonical
//! detokenizer in [`crate::lex::token::formatting`].

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

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