1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-09 04:52:28 +00:00

Version 2 of new source mapping.

This commit is contained in:
Calvin Rose
2018-06-29 01:15:47 -04:00
parent bb406133de
commit 2e472ec9a3
11 changed files with 109 additions and 729 deletions

18
examples/error.dst Normal file
View File

@@ -0,0 +1,18 @@
# An example file that errors out. Run with ./dst examples/error.dst
# to see stack trace for runtime errors.
(defn bark [x]
(print "Woof!")
(print x)
(error x)
(print "Woof!"))
(defn bork [x]
(bark (* 2 x))
(bark (* 3 x)))
(defn pupper []
(bork 3)
1)
(pupper)