oak_scala/language/
mod.rs1use crate::ast::ScalaRoot;
2use oak_core::{Language, LanguageCategory};
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
7pub struct ScalaLanguage {
8 }
10
11impl ScalaLanguage {
12 pub fn new() -> Self {
14 Self {}
15 }
16}
17
18impl Default for ScalaLanguage {
19 fn default() -> Self {
20 Self {}
21 }
22}
23
24impl Language for ScalaLanguage {
25 const NAME: &'static str = "scala";
26 const CATEGORY: LanguageCategory = LanguageCategory::Programming;
27
28 type TokenType = crate::kind::ScalaSyntaxKind;
29 type ElementType = crate::kind::ScalaSyntaxKind;
30 type TypedRoot = ScalaRoot;
31}