oak_php/language/mod.rs
1use oak_core::{Language, LanguageCategory};
2
3pub type TypedRoot = crate::ast::PhpRoot;
4
5#[derive(Debug, Default)]
6pub struct PhpLanguage;
7
8impl Language for PhpLanguage {
9 const NAME: &'static str = "php";
10 const CATEGORY: LanguageCategory = LanguageCategory::Programming;
11
12 type TokenType = crate::kind::PhpSyntaxKind;
13 type ElementType = crate::kind::PhpSyntaxKind;
14 type TypedRoot = crate::ast::PhpRoot;
15}