Skip to main content

oak_powershell/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2use serde::{Deserialize, Serialize};
3
4pub type TypedRoot = crate::ast::PowerShellRoot;
5
6#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default, Serialize, Deserialize)]
7pub struct PowerShellLanguage {}
8
9impl PowerShellLanguage {
10    pub fn new() -> Self {
11        Self {}
12    }
13}
14
15impl Language for PowerShellLanguage {
16    const NAME: &'static str = "powershell";
17    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
18
19    type TokenType = crate::kind::PowerShellSyntaxKind;
20    type ElementType = crate::kind::PowerShellSyntaxKind;
21    type TypedRoot = crate::ast::PowerShellRoot;
22}