Expand description
Core parser infrastructure for the Universal Markup-language Compiler.
This crate provides the foundational traits and types for implementing language-specific parsers. It defines a generic parser framework that can be used to parse different markup languages (HTML, XML, etc.).
§Example
ⓘ
use umc_parser::{Parser, LanguageParser};
use oxc_allocator::Allocator;
// Assuming Html implements LanguageParser
let allocator = Allocator::default();
let parser = Parser::<Html>::new(&allocator, "<html></html>");
let result = parser.parse();Modules§
- char
- Character utility functions for UTF-8 handling.
- source
- Source text tracking and navigation.
- token
- Token types and utilities.
Structs§
- Parse
Result - Result of a parsing operation.
- Parser
- Generic parser wrapper for any language implementing
LanguageParser.
Traits§
- Language
Parser - Core trait for implementing language-specific parsers.
- Parser
Impl - Implementation trait for language-specific parser instances.