Skip to main content

Crate rexact_syntax

Crate rexact_syntax 

Source
Expand description

Dialect parsers, flags, support-matrix data and the error catalogue.

Design note: depends on no other project crate. Failure modes are expressed only through error::ErrorCode, one variant per catalogue entry.

Re-exports§

pub use dialect::Dialect;
pub use flags::Flags;
pub use parser::ParseLimits;
pub use parser::Pattern;

Modules§

ast
Syntax tree produced by the dialect parsers.
dialect
Dialect names (FR-A02).
error
The error catalogue (docs/07). Single source of truth (RULE-17): the enum, code strings, exit codes, meanings and remedies are all generated from the one table below. A test cross-checks it against the documentation.
flags
Dialect flags (FR-A03, docs/13 section 5).
locate
Positions and caret rendering (FR-A06, docs/07 rule 2).
matrix
Syntax-support matrix data (docs/13, RULE-17).
parser
Hand-written recursive-descent parsers for the ecma and python dialects (FR-A04..A06, FR-A12).