Skip to main content

oak_purescript/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3/// PureScript 语言实现
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub struct PurescriptLanguage {
6    /// 语言配置
7    pub config: (),
8}
9
10impl Default for PurescriptLanguage {
11    fn default() -> Self {
12        Self { config: () }
13    }
14}
15
16impl Language for PurescriptLanguage {
17    const NAME: &'static str = "purescript";
18    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
19
20    type TokenType = crate::kind::PurescriptSyntaxKind;
21    type ElementType = crate::kind::PurescriptSyntaxKind;
22    type TypedRoot = ();
23}