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 - ASCII Version"),
|
||||
..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,45 +67,45 @@ impl eframe::App for NyashNotepad {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Main text editor
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
// Title
|
||||
ui.heading("=== Nyash Text Editor ===");
|
||||
|
||||
|
||||
// Toolbar without emojis
|
||||
ui.horizontal(|ui| {
|
||||
if ui.button("[X] Clear").clicked() {
|
||||
self.text.clear();
|
||||
self.status = "Text cleared".to_string();
|
||||
}
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
if ui.button("[C] Copy").clicked() {
|
||||
ui.output_mut(|o| o.copied_text = self.text.clone());
|
||||
self.status = "Text copied to clipboard".to_string();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("[X] 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("[V] Paste").clicked() {
|
||||
self.status = "Paste (simplified version)".to_string();
|
||||
}
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
if ui.button("[?] Help").clicked() {
|
||||
self.status = "Nyash Notepad v1.0 - Everything is Box!".to_string();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
// Text editor body
|
||||
egui::ScrollArea::vertical().show(ui, |ui| {
|
||||
ui.add(
|
||||
@ -113,22 +113,23 @@ 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| {
|
||||
ui.label("Quick Insert: ");
|
||||
|
||||
|
||||
if ui.button("Nyash Sample Code").clicked() {
|
||||
self.text.push_str("\n// Nyash - Everything is Box!\n");
|
||||
self.text.push_str("box HelloWorld {\n");
|
||||
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.text.push_str(" greet() {\n");
|
||||
@ -141,13 +142,14 @@ impl eframe::App for NyashNotepad {
|
||||
self.text.push_str("hello.greet()\n");
|
||||
self.status = "Nyash sample code inserted".to_string();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("Current Time").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();
|
||||
}
|
||||
|
||||
|
||||
if ui.button("ASCII Art Cat").clicked() {
|
||||
self.text.push_str("\n");
|
||||
self.text.push_str(" /\\_/\\ \n");
|
||||
@ -160,4 +162,4 @@ impl eframe::App for NyashNotepad {
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user