oak_delphi/language/
mod.rs

1use crate::{ast::DelphiRoot, kind::DelphiSyntaxKind};
2use oak_core::Language;
3
4/// Language definition for Delphi programming language
5#[derive(Debug, Clone)]
6pub struct DelphiLanguage {
7    /// Whether to enable strict syntax checking
8    pub strict_syntax: bool,
9    /// Whether to support Unicode strings
10    pub unicode_strings: bool,
11}
12
13impl Default for DelphiLanguage {
14    fn default() -> Self {
15        Self { strict_syntax: false, unicode_strings: true }
16    }
17}
18
19impl Language for DelphiLanguage {
20    type SyntaxKind = DelphiSyntaxKind;
21    type TypedRoot = DelphiRoot;
22}