Skip to main content

oak_pascal/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3#[derive(Debug, Default)]
4pub struct PascalLanguage {}
5
6impl PascalLanguage {
7    pub fn new() -> Self {
8        Self {}
9    }
10}
11
12impl Language for PascalLanguage {
13    const NAME: &'static str = "pascal";
14    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
15
16    type TokenType = crate::kind::PascalSyntaxKind;
17    type ElementType = crate::kind::PascalSyntaxKind;
18    type TypedRoot = crate::ast::PascalRoot;
19}