mirror of
https://github.com/janet-lang/janet
synced 2025-10-31 23:53:02 +00:00
Redo function call bytecode interface to be simpler and allow
for an apply like structure in the language
This commit is contained in:
20
libs/pp.gst
Normal file
20
libs/pp.gst
Normal file
@@ -0,0 +1,20 @@
|
||||
# Pretty print
|
||||
|
||||
# Reindent a function to be more deeply indented
|
||||
(: reindent (fn [x] x))
|
||||
|
||||
(: handler {
|
||||
"number" tostring
|
||||
"nil" tostring
|
||||
"boolean" tostring
|
||||
"userdata" tostring
|
||||
"cfunction" tostring
|
||||
"function" tostring
|
||||
"string" tostring # change to unquote string
|
||||
"buffer" tostring
|
||||
"array" tostring
|
||||
"tuple" tostring
|
||||
"object" tostring
|
||||
"struct" tostring
|
||||
"thread" tostring
|
||||
})
|
||||
Reference in New Issue
Block a user