Expand description
ZPL toolchain core library.
Provides parsing, validation, and emission of ZPL (Zebra Programming
Language) label code. The main entry points are parse_str for parsing,
validate_with_profile for validation, and emit_zpl for formatted
output.
Re-exports§
pub use grammar::parser::ParseResult;pub use grammar::parser::parse_str;pub use grammar::parser::parse_with_tables;pub use grammar::ast::ArgSlot;pub use grammar::ast::Ast;pub use grammar::ast::Label;pub use grammar::ast::Node;pub use grammar::ast::Presence;pub use grammar::emit::EmitConfig;pub use grammar::emit::Indent;pub use grammar::emit::emit_zpl;pub use grammar::emit::strip_spans;pub use validate::ValidationResult;pub use validate::validate_with_profile;pub use grammar::dump::to_pretty_json;
Modules§
- codes
- Re-exported diagnostic types from the diagnostics crate. Diagnostic ID constants auto-generated from the spec. Diagnostic ID constants.
- grammar
- ZPL grammar: lexer, parser, AST, emitter, and related utilities.
- hex_
escape - Hex escape processing for
^FHfield data. Hex escape processing for ZPL^FHfield data. - validate
- AST validation against spec tables and printer profiles.
Structs§
- Diagnostic
- Re-exported diagnostic types from the diagnostics crate. A diagnostic message produced by the parser or validator.
- Parser
Tables - Re-exported spec table types used by the parser and validator. Top-level container for all ZPL command spec tables.
- Span
- Re-exported diagnostic types from the diagnostics crate. Byte span in the source input.
Enums§
- Severity
- Re-exported diagnostic types from the diagnostics crate. Severity level for a diagnostic message.