Skip to main content

oak_wit/language/
mod.rs

1// use crate::kind::WitSyntaxKind;
2use oak_core::{Language, LanguageCategory};
3use serde::{Deserialize, Serialize};
4
5#[derive(Default, Debug, Clone, Copy, Serialize, Deserialize)]
6pub struct WitLanguage {}
7
8impl Language for WitLanguage {
9    const NAME: &'static str = "wit-component";
10    const CATEGORY: LanguageCategory = LanguageCategory::Dsl;
11
12    type TokenType = crate::kind::WitSyntaxKind;
13    type ElementType = crate::kind::WitSyntaxKind;
14    type TypedRoot = ();
15}