1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-30 22:08:05 +00:00

Add parser/insert and bump to 0.4.0

This commit is contained in:
Calvin Rose
2019-01-31 14:48:28 -05:00
parent 0c950d0846
commit 4bcf6565cd
4 changed files with 46 additions and 3 deletions

View File

@@ -1393,12 +1393,14 @@ value, one key will be ignored."
where
" around byte "
(string (parser/where p))
(or (parser/error p) "unmatched delimiter")))
": "
(or (parser/error p) "unmatched delimiter")
"\n"))
(defn bad-compile
"Default handler for a compile error."
[msg macrof where]
(file/write stderr msg " while compiling " where "\n")
(file/write stderr "compile error: " msg " while compiling " where "\n")
(when macrof (debug/stacktrace macrof)))
(defn getline