1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6
7pub mod ast;
9pub mod builder;
11
12pub mod language;
15pub mod lexer;
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
19pub mod lsp;
20#[cfg(feature = "mcp")]
22pub mod mcp;
23
24pub mod parser;
26
27pub use crate::ast::TypstRoot;
28pub use builder::TypstBuilder;
29pub use language::TypstLanguage;
30pub use lexer::TypstLexer;
32pub use parser::TypstParser;
33
34#[cfg(feature = "oak-highlight")]
36pub use crate::lsp::highlighter::TypstHighlighter;
37
38#[cfg(feature = "lsp")]
39pub use crate::lsp::TypstLanguageService;
40#[cfg(feature = "lsp")]
42pub use crate::lsp::formatter::TypstFormatter;
43
44#[cfg(feature = "mcp")]
46pub use crate::mcp::serve_typst_mcp;
47pub use lexer::token_type::TypstTokenType;
48pub use parser::element_type::TypstElementType;