oak-bat 0.0.11

High-performance incremental Windows Batch (BAT) parser for the oak ecosystem with flexible configuration, supporting shell scripting and automation workflows.
Documentation
#![doc = include_str!("readme.md")]
/// Root node of the Windows Batch (BAT) syntax tree.
#[derive(Debug, Clone, serde::Serialize)]
pub struct BatRoot {
    /// Elements in the syntax tree.
    pub elements: Vec<Element>,
}

/// Element in the Windows Batch (BAT) syntax tree.
#[derive(Debug, Clone, serde::Serialize)]
pub enum Element {
    /// Command.
    Command(String),
    /// Variable.
    Variable(String),
    /// String.
    String(String),
    /// Comment.
    Comment(String),
    /// Label.
    Label(String),
    /// Keyword.
    Keyword(String),
    /// Text.
    Text(String),
}