Skip to main content

oak_vlang/
lib.rs

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
7extern crate alloc;
8
9/// AST module.
10pub mod ast;
11/// Builder module for constructing V language AST from syntax trees.
12pub mod builder;
13// pub mod formatter;
14//
15// pub mod highlighter;
16/// Type definitions module.
17/// Language configuration module.
18pub mod language;
19/// Lexer module.
20pub mod lexer;
21// /// LSP module.
22#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
23pub mod lsp;
24// pub mod mcp;
25/// Parser module.
26pub mod parser;
27
28pub use crate::{ast::*, builder::VLangBuilder, language::VLangLanguage, lexer::VLangLexer, parser::VLangParser};
29pub use oak_core::{ElementType, TokenType};
30
31// #[cfg(feature = "oak-highlight")]
32// pub use crate::lsp::highlighter::VLangHighlighter;
33
34// /// LSP implementation.
35#[cfg(feature = "lsp")]
36pub use crate::lsp::VLangLanguageService;
37// #[cfg(feature = "lsp")]
38// pub use crate::lsp::formatter::VLangFormatter;
39pub use lexer::token_type::VLangTokenType;
40pub use parser::element_type::VLangElementType;