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