oak-protobuf 0.0.11

High-performance incremental Protocol Buffers parser for the oak ecosystem with flexible configuration, optimized for structured data serialization.
Documentation
#![doc = include_str!("readme.md")]
use oak_core::{Language, LanguageCategory};

/// Configuration for the Protobuf language support.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct ProtobufLanguage {}

impl ProtobufLanguage {
    /// Creates a new `ProtobufLanguage`.
    pub fn new() -> Self {
        Self {}
    }
}

impl Language for ProtobufLanguage {
    const NAME: &'static str = "protobuf";
    const CATEGORY: LanguageCategory = LanguageCategory::Programming;

    type TokenType = crate::lexer::token_type::ProtobufTokenType;
    type ElementType = crate::parser::element_type::ProtobufElementType;
    type TypedRoot = crate::ast::ProtobufRoot;
}