From a84e232cc7c4c0812aa0c8d78630b6c31e689ce5 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 25 Apr 2022 19:08:24 -0400 Subject: [PATCH] Test imports, panics --- bar.ld | 5 +++++ hello.ld | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 bar.ld diff --git a/bar.ld b/bar.ld new file mode 100644 index 0000000..467a0be --- /dev/null +++ b/bar.ld @@ -0,0 +1,5 @@ +ns Bar { + :foo :foo + :bar :bar + :baz "baz" +} \ No newline at end of file diff --git a/hello.ld b/hello.ld index 5cbca10..09737c5 100644 --- a/hello.ld +++ b/hello.ld @@ -1 +1,7 @@ -do "hello!" > fn (x) -> print (x) > print \ No newline at end of file +import "bar.ld" as Bar + +print ("Bar :foo should be :foo. It is ", Bar :foo) + +print ("But if I do something naughty, Ludus will panic") + +panic! ("oops", :foo, 42) \ No newline at end of file