fatou-parser 0.8.2

Lossless CST parser, typed AST wrappers, and incremental reparser for the Julia language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A lossless parser for Julia's Markdown dialect and Documenter syntax.
//!
//! Documentation strings reach this module after Julia string decoding. All
//! ranges are therefore relative to the decoded text; callers working from a
//! Julia docstring can compose them with [`crate::ast::DocSourceMap`]. Parsing
//! is entirely local and never evaluates Julia or invokes a Julia process.
//!
//! Inline `--` and `---` follow Julia 1.13's en-dash and em-dash semantics.
//! Their CST tokens retain the original spelling; typed navigation exposes
//! [`ast::Inline::EnDash`] and [`ast::Inline::EmDash`], and heading content
//! uses the corresponding Unicode characters.

pub mod ast;
mod parser;
pub mod syntax;

pub use parser::{DiagnosticKind, ParseDiagnostic, ParseOutput, parse, reconstruct};