Expand description
Document Character (Dc) syntax Domain Specific Language (DSL) module.
Provides AST definitions, lexer/parser, semantic and cross-reference validators, and resilient tag-soup pattern matchers for evaluating and processing DcText documents.
Re-exports§
pub use crate::support::data_constraint;pub use crate::support::seed_graph_reconstruct::PatternTokenStep;pub use crate::support::syntax_ast as ast;pub use crate::support::syntax_parser as parser;pub use crate::support::syntax_validator as validator;pub use ast::SyntaxPattern as DcSyntaxExpr;pub use ast::ActionArg;pub use ast::CharTarget;pub use ast::DcSyntaxRule;pub use ast::FramingShape;pub use ast::MAX_LEGACY_FRAMING_SHORT_DC_ID;pub use ast::NumberSubtypeConstraint;pub use ast::NumericBoundValue;pub use ast::Quantifier;pub use ast::SubtypeConstraint;pub use ast::SyntaxAction;pub use ast::SyntaxDiagnostic;pub use ast::SyntaxElement;pub use ast::SyntaxPattern;pub use ast::SyntaxTerm;pub use ast::classify_rule_framing_shape;pub use ast::classify_rule_framing_shape_with;pub use ast::is_unary_prefix_rule;pub use ast::normalize_syntax_pattern;pub use data_constraint::NumberConstraintClause;pub use data_constraint::parse_data_constraint;pub use data_constraint::parse_number_constraint;pub use parser::format_extension_regex_pattern;pub use parser::is_extension_regex;pub use parser::parse_dc_syntax;pub use parser::parse_extension_regex;pub use parser::parse_target_token;pub use resolver::DatasetRuleResolver;pub use resolver::StarterSet;pub use resolver::SyntaxRuleResolver;pub use resolver::detect_container_closer;pub use resolver::extract_container_header_elements;pub use resolver::extract_trailing_after_closer;pub use role::DcRole;pub use validator::FormatValidationInfo;pub use validator::FormatValidationRegistry;pub use validator::build_format_validation_registry;pub use validator::is_transformation_format_category;pub use validator::validate_dc_syntax;
Modules§
- resolver
- Rule and named type resolution trait and dataset implementation.
- role
- Document Character (Dc) syntactic and semantic role classifications.
Functions§
- default_
syntax_ resolver - Returns the lazily loaded shared default syntax resolver instance.
- register_
historical_ syntax_ resolver - Registers a pre-built
DatasetRuleResolverin the historical resolver cache formost_recent_node_id(Dc 641"Global graph system block most recent node ID at time of document creation"). - syntax_
resolver_ at_ most_ recent - Returns a shared syntax resolver reflecting the System-block graph state as of
most_recent_node_id(Dc 641"Global graph system block most recent node ID at time of document creation").