26 lines
577 B
Rust
26 lines
577 B
Rust
use schala_lib::{ProgrammingLanguageInterface, EvalOptions, TraceArtifact, LanguageOutput};
|
|
|
|
use schala_lang::{tokenizing, parsing};
|
|
|
|
pub struct Schala { }
|
|
|
|
impl Schala {
|
|
pub fn new() -> Schala {
|
|
Schala { }
|
|
}
|
|
}
|
|
|
|
impl ProgrammingLanguageInterface for Schala {
|
|
fn get_language_name(&self) -> String {
|
|
"Schala-autoparser".to_string()
|
|
}
|
|
fn get_source_file_suffix(&self) -> String {
|
|
format!("schala")
|
|
}
|
|
|
|
fn evaluate_in_repl(&mut self, input: &str, options: &EvalOptions) -> LanguageOutput {
|
|
let mut output = LanguageOutput::default();
|
|
output
|
|
}
|
|
}
|