1#![doc = include_str!("readme.md")]
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct MsilLanguage;
7
8impl MsilLanguage {
9 pub fn new() -> Self {
11 Self
12 }
13}
14
15impl Default for MsilLanguage {
16 fn default() -> Self {
17 Self::new()
18 }
19}
20
21impl oak_core::Language for MsilLanguage {
22 type TokenType = crate::lexer::token_type::MsilTokenType;
23 type ElementType = crate::parser::element_type::MsilElementType;
24 type TypedRoot = crate::ast::MsilRoot;
25 const NAME: &'static str = "msil";
26}