oak_julia/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3/// Julia 语言实现
4#[derive(Debug)]
5pub struct JuliaLanguage {
6    pub allow_comment: bool,
7}
8
9impl Language for JuliaLanguage {
10    const NAME: &'static str = "julia";
11    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
12
13    type TokenType = crate::kind::JuliaSyntaxKind;
14    type ElementType = crate::kind::JuliaSyntaxKind;
15    type TypedRoot = crate::ast::JuliaRoot;
16}
17
18impl Default for JuliaLanguage {
19    fn default() -> Self {
20        Self { allow_comment: true }
21    }
22}