added a brainf&&k module to the compiler (specialised module so no

frontend/backend distinction or use of standard model)
This commit is contained in:
2026-02-05 01:11:38 +00:00
parent c2bf9f6667
commit b8abbfd02f
2 changed files with 148 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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,
}
}