Skip to main content

Crate ucl_parser

Crate ucl_parser 

Source
Expand description

§UCL Parser

Parser for the Unified Content Language (UCL).

UCL is a token-efficient command language for manipulating UCM documents.

§Document Structure

STRUCTURE
<adjacency declarations>

BLOCKS
<block definitions>

COMMANDS
<transformation commands>

Re-exports§

pub use lexer::Token;
pub use lexer::TokenKind;
pub use parser::ParseError;
pub use parser::ParseResult;
pub use parser::Parser;
pub use ast::*;

Modules§

ast
Abstract Syntax Tree for UCL documents.
lexer
Lexer for UCL using Logos.
parser
Parser for UCL documents.

Functions§

parse
Parse a UCL document string
parse_commands
Parse UCL commands only (without STRUCTURE/BLOCKS sections)