Skip to main content

oak_html/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![feature(portable_simd)]
4#![warn(missing_docs)]
5#![doc = include_str!("readme.md")]
6#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
7#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
8
9/// AST module for HTML nodes.
10pub mod ast;
11/// Builder module for constructing HTML trees.
12pub mod builder;
13/// Kind module defining HTML syntax types.
14/// Language module for HTML configuration.
15pub mod language;
16/// Lexer module for HTML tokenization.
17pub mod lexer;
18/// LSP module for HTML language service features.
19#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
20pub mod lsp;
21/// MCP module.
22#[cfg(feature = "mcp")]
23pub mod mcp;
24
25/// Parser module for HTML syntax analysis.
26pub mod parser;
27
28pub use crate::{ast::HtmlDocument, builder::HtmlBuilder, language::HtmlLanguage, lexer::HtmlLexer, parser::HtmlParser};
29
30/// Re-export of the HTML highlighter.
31#[cfg(feature = "oak-highlight")]
32pub use crate::lsp::highlighter::HtmlHighlighter;
33
34/// Re-export of the HTML language service.
35#[cfg(feature = "lsp")]
36pub use crate::lsp::HtmlLanguageService;
37pub use lexer::token_type::HtmlTokenType;
38pub use parser::element_type::HtmlElementType;