sysml-v2-parser 0.17.0

SysML v2 textual notation parser for Rust
Documentation
//! Nom-based parser for SysML v2 textual notation.
//!
//! Organized into modules:
//! - [lex]: whitespace, comments, names, qualified names, skip helpers
//! - [diagnostics]: nom error mapping, diagnostic classification, deduplication
//! - [recovery]: recovery error nodes for structured body parsing
//! - [collect_errors]: aggregate diagnostics from AST recovery nodes
//! - [parse]: `parse_root` and `parse_with_diagnostics` entry points
//! - [attribute]: attribute definition and usage
//! - [import]: import and relationship body
//! - [part]: part definition and part usage
//! - [package]: package and root namespace

mod action;
mod alias;
mod allocation;
mod attribute;
mod bnf_surface;
mod body;
mod case;
mod collect_errors;
mod connection;
mod constraint;
mod definition_header;
mod definition_prefix;
mod dependency;
mod diagnostics;
mod enumeration;
mod expr;
mod flow;
mod import;
mod individual;
mod interface;
mod item;
mod lex;
mod metadata;
mod metadata_annotation;
mod occurrence;
mod package;
mod parse;
mod part;
mod port;
mod recovery;
mod requirement;
mod span;
mod specialization;
mod state;
mod usage;
mod usecase;
mod view;

pub(crate) use span::{node_from_to, span_from_to, with_span, Input};

pub use parse::{parse_root, parse_with_diagnostics, ParseResult};

pub(crate) use recovery::{build_recovery_error_node, build_recovery_error_node_from_span};