Skip to main content

relate_parser/
lib.rs

1pub mod ast;
2// The auto-parameter vocabulary in both directions (ADR-0503/0718) and
3// the bracket classification (REL8-1423). Both module paths are private;
4// the auto-parameter items are re-exported below as public API (the
5// facade's naming path calls them), while the bracket classification
6// stays internal. (The token-fact vocabulary lives under the token
7// module, `token::facts`.)
8mod auto_parameter;
9mod bracket_role;
10pub mod error;
11pub mod lexer;
12mod normalize;
13pub mod parser;
14pub mod token;
15pub mod type_normalize;
16
17// The Unicode 13.0.0 identifier predicates and their generated tables
18// (ADR-0182) are a lexer implementation detail, not part of the crate's
19// public API.
20mod unicode_identifier;
21
22// Re-export the main parse function and key types for convenience.
23pub use ast::*;
24pub use auto_parameter::{
25    authored_spellings, column_carries_auto_parameter, name_is_auto_parameter,
26    params_carry_reserved_prefix, substitute_auto_parameters, AuthoredSpelling, AuthoredSpellings,
27};
28pub use error::{ParseError, ParseResult};
29pub use normalize::{normalize_statement, NormalizeOutcome, Normalized, NormalizedValue};
30pub use parser::{
31    literal_argument_mismatch, parse, parse_graph_type_body, parse_with_options,
32    selector_is_selective,
33};
34pub use token::{Token, TokenType};
35pub use type_normalize::*;