- added support for args in Builder trait

- added is_lib arg for compiler to produce non-main assembly outputs
- updated templates to use include_str
This commit is contained in:
2026-02-23 22:06:07 +00:00
parent 71b36dc6b5
commit 4bee36eb7f
28 changed files with 889 additions and 525 deletions
+5 -3
View File
@@ -426,7 +426,7 @@ impl Editor {
match path.extension().and_then(|ext| ext.to_str()) {
Some("dsa") => {
let mut assembler = Assembler::new(path);
assembler.start();
assembler.start(());
// Or block until done
self.output = match assembler.output() {
@@ -440,7 +440,9 @@ impl Editor {
Some("dsc") => {
let dsa_path = Path::new(path).with_extension("dsa");
let mut compiler = Compiler::new(path);
compiler.start();
let is_lib = false;
compiler.start(is_lib);
if let Err(e) = compiler.write_result(&dsa_path) {
self.error = Some(e.to_string());
@@ -448,7 +450,7 @@ impl Editor {
}
let mut assembler = Assembler::new(&dsa_path);
assembler.start();
assembler.start(());
// Or block until done
self.output = match assembler.output() {