b8abbfd02f
frontend/backend distinction or use of standard model)
14 lines
282 B
Rust
14 lines
282 B
Rust
use crate::model::CompilerError;
|
|
|
|
pub mod brainf;
|
|
|
|
pub fn build_specialised(ext: &str, data: &str) -> Option<Result<String, CompilerError>> {
|
|
match ext {
|
|
"bf" => {
|
|
let res = brainf::build(data);
|
|
Some(Ok(res))
|
|
}
|
|
_ => None,
|
|
}
|
|
}
|