Skip to main content

oak_pascal/language/
mod.rs

1#![doc = include_str!("readme.md")]
2use oak_core::{Language, LanguageCategory};
3
4/// Implementation of the Pascal language.
5#[derive(Debug, Default)]
6pub struct PascalLanguage {}
7
8impl PascalLanguage {
9    /// Creates a new Pascal language implementation.
10    pub fn new() -> Self {
11        Self {}
12    }
13}
14
15impl Language for PascalLanguage {
16    const NAME: &'static str = "pascal";
17    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
18
19    type TokenType = crate::lexer::token_type::PascalTokenType;
20    type ElementType = crate::parser::element_type::PascalElementType;
21    type TypedRoot = crate::ast::PascalRoot;
22}