1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![warn(missing_docs)]
6
7pub mod ast;
8pub mod builder;
9
10pub mod language;
11pub mod lexer;
12#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
13pub mod lsp;
14#[cfg(feature = "mcp")]
16pub mod mcp;
17
18pub mod parser;
20
21pub use crate::{
22 ast::NoteDocument as NoteRoot,
23 builder::NoteBuilder,
24 language::NotedownLanguage as NoteLanguage,
25 lexer::{NotedownLexer as NoteLexer, token_type::NoteTokenType},
26 parser::NoteParser,
27};
28
29#[cfg(feature = "lsp")]
30pub use crate::lsp::highlighter::{HighlightKind, Highlighter, NoteHighlighter};
31
32#[cfg(feature = "lsp")]
33pub use crate::lsp::NoteLanguageService;
34
35#[cfg(feature = "mcp")]
36pub use crate::mcp::serve_note_mcp;
37pub use parser::element_type::NoteElementType;