Skip to main content

oak_delphi/
lib.rs

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;
8mod builder;
9
10mod language;
11mod lexer;
12#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
13pub mod lsp;
14/// Delphi parser implementation.
15pub mod parser;
16
17// Re-export main types
18pub use crate::{
19    ast::DelphiRoot,
20    builder::DelphiBuilder,
21    language::DelphiLanguage,
22    lexer::{DelphiLexer, token_type::DelphiTokenType},
23    parser::element_type::DelphiElementType,
24};
25
26#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
27pub use crate::lsp::{formatter::DelphiFormatter, highlighter::DelphiHighlighter};