From b9eae2bbc4c53fe3604fe47f21867ad4790ce7bb Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 20 Feb 2023 13:32:20 +0100 Subject: [PATCH] std panic fix, ready for initial, slightly incomplete publish to crates.io --- Cargo.lock | 2 +- Cargo.toml | 8 +++++--- std.spl | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07f5430..2548c86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,7 +16,7 @@ checksum = "b03f7fbd470aa8b3ad163c85cce8bccfc11cc9c44ef12da0a4eddd98bd307352" [[package]] name = "spl" -version = "0.1.0" +version = "0.0.1" dependencies = [ "once_cell", "readformat", diff --git a/Cargo.toml b/Cargo.toml index 046cdc7..bfe3f82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "spl" -version = "0.1.0" +version = "0.0.1" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +description = "Stack Pogramming Language: A simple, concise scripting language." +license = "MIT" +repository = "https://github.com/tudbut/spl" +authors = ["TudbuT"] [dependencies] readformat = "0.1" diff --git a/std.spl b/std.spl index 2673644..bfbd71f 100644 --- a/std.spl +++ b/std.spl @@ -397,6 +397,7 @@ func panic { | with msg ; "Type 'Yes^M' to dump. You can set SPL_PANIC_DUMP to always dump " "on panic, or SPL_PLAIN_PANIC to never dump." concat println readln "Yes" eq if { + null =map dyn-__dump } }