#![doc = include_str!("readme.md")]
use oak_core::{Language, LanguageCategory};
#[derive(Debug, Default, Copy, Clone)]
pub struct JasminLanguage {
pub extended: bool,
pub comments: bool,
}
impl JasminLanguage {
pub fn new() -> Self {
Self::default()
}
pub fn standard() -> Self {
Self { extended: true, comments: true }
}
pub fn minimal() -> Self {
Self { extended: false, comments: false }
}
}
impl Language for JasminLanguage {
const NAME: &'static str = "jasmin";
const CATEGORY: LanguageCategory = LanguageCategory::Programming;
type TokenType = crate::lexer::token_type::JasminTokenType;
type ElementType = crate::parser::element_type::JasminElementType;
type TypedRoot = crate::ast::JasminRoot;
}