smokes: add curated LLVM runner; archive legacy smokes; PHI-off unified across Bridge/Builder; LLVM resolver tracing; minimal Throw lowering; config env getters; dev profile and root cleaner; docs updated; CI workflow runs curated LLVM (PHI-on/off)
This commit is contained in:
@ -10,7 +10,7 @@ fn main() -> eframe::Result {
|
||||
.with_title("Nyash Notepad"),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
eframe::run_native(
|
||||
"Nyash Notepad",
|
||||
options,
|
||||
@ -43,13 +43,13 @@ impl eframe::App for NyashNotepad {
|
||||
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ui.menu_button("Edit", |ui| {
|
||||
if ui.button("Select All").clicked() {
|
||||
self.status = "Select All (not implemented)".to_string();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ui.menu_button("Help", |ui| {
|
||||
if ui.button("About Nyash").clicked() {
|
||||
self.status = "Nyash - Everything is Box!".to_string();
|
||||
@ -57,7 +57,7 @@ impl eframe::App for NyashNotepad {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Status bar
|
||||
egui::TopBottomPanel::bottom("status_bar").show(ctx, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
@ -67,7 +67,7 @@ impl eframe::App for NyashNotepad {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Main text editor
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
// Toolbar
|
||||
@ -76,27 +76,27 @@ impl eframe::App for NyashNotepad {
|
||||
self.text.clear();
|
||||
self.status = "Text cleared".to_string();
|
||||
}
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
if ui.button("Copy").clicked() {
|
||||
ui.output_mut(|o| o.copied_text = self.text.clone());
|
||||
self.status = "Text copied to clipboard".to_string();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("Cut").clicked() {
|
||||
ui.output_mut(|o| o.copied_text = self.text.clone());
|
||||
self.text.clear();
|
||||
self.status = "Text cut to clipboard".to_string();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("Paste").clicked() {
|
||||
self.status = "Paste (simplified version)".to_string();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
// Text editor body
|
||||
egui::ScrollArea::vertical().show(ui, |ui| {
|
||||
ui.add(
|
||||
@ -104,10 +104,10 @@ impl eframe::App for NyashNotepad {
|
||||
.font(egui::TextStyle::Monospace)
|
||||
.desired_width(f32::INFINITY)
|
||||
.desired_rows(20)
|
||||
.hint_text("Type your text here... nya!")
|
||||
.hint_text("Type your text here... nya!"),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
// Sample buttons
|
||||
ui.separator();
|
||||
ui.horizontal(|ui| {
|
||||
@ -117,18 +117,20 @@ impl eframe::App for NyashNotepad {
|
||||
self.text.push_str(" init { message }\n");
|
||||
self.text.push_str(" \n");
|
||||
self.text.push_str(" HelloWorld() {\n");
|
||||
self.text.push_str(" me.message = \"Hello, Nyash World! nya!\"\n");
|
||||
self.text
|
||||
.push_str(" me.message = \"Hello, Nyash World! nya!\"\n");
|
||||
self.text.push_str(" }\n");
|
||||
self.text.push_str("}\n");
|
||||
self.status = "Nyash sample code inserted".to_string();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("Insert Timestamp").clicked() {
|
||||
let now = chrono::Local::now();
|
||||
self.text.push_str(&format!("\n{}\n", now.format("%Y-%m-%d %H:%M:%S")));
|
||||
self.text
|
||||
.push_str(&format!("\n{}\n", now.format("%Y-%m-%d %H:%M:%S")));
|
||||
self.status = "Timestamp inserted".to_string();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user