Michiel Borkent
736555bdb6
Add Writer, PrintWriter and PushbackReader
2020-01-21 15:27:38 +01:00
Michiel Borkent
e427060c0b
Add java.io.Reader and StringBuilder
2020-01-21 15:14:33 +01:00
Michiel Borkent
a442bde76a
[ #213 ] Allow -e argument to be repeated
2020-01-20 11:00:53 +01:00
Michiel Borkent
8f698894f6
[ #234 ] *ns* should be controllable set per socket REPL connection
2020-01-20 10:41:11 +01:00
Michiel Borkent
9269f1087f
[ #243 ] ns form doesn't work with socket repl
2020-01-19 20:01:49 +01:00
Michiel Borkent
6c4a54745a
Add time macro
2020-01-19 15:28:59 +01:00
Michiel Borkent
073fbcac20
Add Throwable to default imports
2020-01-19 14:18:52 +01:00
Michiel Borkent
45da56a964
sci: support reload
2020-01-18 20:41:46 +01:00
Michiel Borkent
d1aaa97df6
sci: record file metadata on var
2020-01-18 18:25:38 +01:00
Michiel Borkent
d9a75cf8cf
dev
2020-01-17 17:26:03 +01:00
Michiel Borkent
0713038457
[ #239 ] Fix issue with clj-http-lite
2020-01-16 10:28:17 +01:00
Michiel Borkent
bfa8b45e34
sci: performance improvement
2020-01-14 17:12:57 +01:00
Michiel Borkent
8c41237f7a
sig -> signal
2020-01-12 20:18:37 +01:00
Michiel Borkent
5a63d37486
babashka.classpath
2020-01-12 20:02:48 +01:00
Michiel Borkent
b933610626
Add experimental add-classpath!
2020-01-12 18:15:34 +01:00
Michiel Borkent
19767b54a3
[ #221 ] print name of exception
2020-01-12 17:40:41 +01:00
Michiel Borkent
8e24744d35
[ #219 ] better error message for unrecognized cli option
2020-01-12 17:27:17 +01:00
Michiel Borkent
1268792b47
Refer 'clojure.repl/dir in user ns
2020-01-12 14:01:22 +01:00
Michiel Borkent
a3b3984f05
Upgrade sci
2020-01-12 13:35:03 +01:00
Michiel Borkent
06cccf1a14
Add ns-publics + clojure.repl/dir
2020-01-12 13:33:56 +01:00
Michiel Borkent
7b85863020
Bind current-ns to user
2020-01-12 11:51:40 +01:00
Michiel Borkent
4a833e3c76
Add test
2020-01-08 22:42:58 +01:00
Michiel Borkent
f1c6f27eaf
xml
2020-01-08 22:04:59 +01:00
Michiel Borkent
90f10061b3
Merge branch 'master' into clojure.data.xml
2020-01-08 21:25:12 +01:00
Michiel Borkent
2b0cb6fb1c
Remove Unix-specific classes ( #227 )
2020-01-08 11:48:40 +01:00
Michiel Borkent
ab6ea2de08
add demunge
2020-01-05 19:01:55 +01:00
Michiel Borkent
193bbc2888
sci: preserve tag in let ( #216 )
2020-01-05 17:45:25 +01:00
Michiel Borkent
1d3cd975ba
Add constructors for Delay and MapEntry
2020-01-04 20:21:09 +01:00
Michiel Borkent
5e2c2a7ba0
Add locking
2020-01-04 20:04:29 +01:00
Michiel Borkent
62f12e75ee
sci: use public alter-var-root
2020-01-04 15:31:49 +01:00
Michiel Borkent
28b873700d
Add class for clj-http.lite
2020-01-02 16:02:36 +01:00
Michiel Borkent
978278768f
Add a bunch of classes
2020-01-02 13:39:22 +01:00
Nate Sutton
95a9e91244
Add FileTime and TimeUnit for working with times on file attributes ( #211 )
2020-01-02 09:31:03 +01:00
Nate Sutton
55e01c5b2c
Add Throwable->map ( #210 )
2020-01-02 09:30:24 +01:00
Nate Sutton
b16e2812e0
Add clojure.stacktrace ( #209 )
2020-01-02 09:29:26 +01:00
Michiel Borkent
0362ecb7f6
Fix starting REPL when no expression is given
2020-01-01 23:27:25 +01:00
Michiel Borkent
6d0531c26e
Add clojure.lang.IOBj
2020-01-01 20:11:49 +01:00
Michiel Borkent
2447f68502
Add java.util.UUID
2020-01-01 18:02:08 +01:00
Michiel Borkent
a9ac2cabbe
Add java.net.Socket/Server
2019-12-31 14:13:22 +01:00
Michiel Borkent
2ed19cef99
Cleanup
2019-12-30 18:06:13 +01:00
Michiel Borkent
24f4f7aafe
[ #200 ] add nio LinkOption
2019-12-30 11:33:23 +01:00
Michiel Borkent
9bdaafbca9
[ #200 ] import IllegalArgumentException
2019-12-30 11:28:47 +01:00
Michiel Borkent
b6f484416b
[ #200 ] add shell/with-sh-dir and shell/with-sh-env
2019-12-30 11:28:07 +01:00
Michiel Borkent
16ca4098c8
add io/resource
2019-12-29 23:37:08 +01:00
Michiel Borkent
ded6dd2355
--uberscript option ( #197 )
2019-12-28 22:52:56 +01:00
Michiel Borkent
edecf87b67
[ #194 ] *command-line-args* should be nil instead of empty list when no args are provided
2019-12-25 16:14:28 +01:00
João Santiago
5ad851d2ed
Add missing functions from cheshire.core ( #195 )
2019-12-25 15:55:49 +01:00
Michiel Borkent
2041656583
[ #154 ] minor
2019-12-24 10:24:41 +01:00
Michiel Borkent
acfc79660a
[ #154 ] Expose clojure.main/repl to babashka
2019-12-24 10:01:32 +01:00
Michiel Borkent
2ab73f2342
Add class to make (client/get "http://...") work
2019-12-22 22:10:22 +01:00
Michiel Borkent
3270d521d3
Support for clj-http-lite
2019-12-22 20:09:52 +01:00
Michiel Borkent
1c5cebb608
Add clojure.core/delay
2019-12-22 13:03:08 +01:00
Michiel Borkent
34249ad0b1
Add reflection info to support clj-http-lite
2019-12-22 09:40:12 +01:00
Michiel Borkent
2eecdea571
[ #179 ] Current file path: *file*
2019-12-21 11:39:28 +01:00
Michiel Borkent
479a08d73e
[ #173 ] <input> becomes *input*
2019-12-20 23:51:24 +01:00
Michiel Borkent
7c45baf008
Make *command-line-args* a dynamic var
2019-12-20 21:29:27 +01:00
Michiel Borkent
4f488ca684
[ #159 ] set sci var roots to *in*, *out* and *err*
2019-12-19 23:34:27 +01:00
Michiel Borkent
a9231b7ecf
[ #173 ] rename *in* to <input> (BREAKING!)
2019-12-19 21:41:57 +01:00
Michiel Borkent
5e10c913e0
[ #174 ] Add edn/read
2019-12-19 18:43:55 +01:00
Michiel Borkent
f8a19d2f46
[ #162 ] add java.util.Base64
2019-12-18 17:01:00 +01:00
Michiel Borkent
1b1e564288
[ #149 ] Add java.time.* classes
2019-12-18 16:38:21 +01:00
Michiel Borkent
316cce2b59
Add java.lang.Math
2019-12-18 13:46:07 +01:00
Michiel Borkent
aa8e6b160b
Close socket
2019-12-17 12:23:34 +01:00
Michiel Borkent
c2d9bbfab2
[ #160 ] Add support for ProcessBuilder ( #165 )
2019-12-17 11:27:40 +01:00
Michiel Borkent
83b3aad920
[ #158 ] Automate generation of reflection.json
2019-12-16 21:44:20 +01:00
Michiel Borkent
218f5e94da
Merge branch 'master' into clojure.data.xml
2019-12-16 13:55:18 +01:00
Michiel Borkent
06eca1c796
Fully qualify async thread-call
2019-12-16 13:10:38 +01:00
Michiel Borkent
1974a2362d
Update sci: fix for nested syntax quote
2019-12-15 20:55:16 +01:00
Michiel Borkent
3ed5f69b20
clojure.data.xml
2019-12-13 21:58:56 +01:00
Michiel Borkent
a74be0ad1a
[ #146 ] support --classpath / -cp and --main / -m ( #150 )
2019-12-12 23:07:35 +01:00
Michiel Borkent
3c5581fa34
[ #147 ] Add cheshire
2019-12-10 09:44:41 +01:00
Michiel Borkent
b735ae62cc
README
2019-12-08 12:51:19 +01:00
Michiel Borkent
c2037c0ed8
[ #137 ] Add REPL prompt at startup
2019-12-08 12:46:06 +01:00
Jakub Holy
f1feec799c
Fix #142 - add NIO/FileAttribute etc. ( #143 )
2019-12-07 16:27:31 +01:00
Michiel Borkent
02d9a315cb
sci: support for dynamic vars
2019-12-07 11:48:57 +01:00
Michiel Borkent
8afb87142e
v0.0.37, add tree example, fix *command-line-args*
2019-11-27 18:13:49 +01:00
Michiel Borkent
1885c45255
[ #105 ] initial support for java.nio.file.Files
2019-11-27 17:14:24 +01:00
Michiel Borkent
3e0d464bfe
Bump sci: namespaces
2019-11-27 14:10:07 +01:00
Michiel Borkent
87accff420
Move assert to sci ( #129 )
2019-11-24 13:35:34 +01:00
Michiel Borkent
cfb1f45e8b
[ #112 ] Add binding, with-out-str and with-in-str
2019-11-16 23:11:42 +01:00
Michiel Borkent
2dfb55d4a3
add clojure.core/*in* and clojure.core/*out*
2019-11-16 16:46:41 +01:00
Michiel Borkent
8c5cc4ee67
[ #103 ] add .write and .append support for BufferedWriter
2019-11-16 11:01:27 +01:00
Michiel Borkent
a0fa854969
Refactor using reflection support ( #110 )
2019-11-16 00:25:36 +01:00
Jeroen van Dijk
d21274a62d
Add clojure.core/eval ( #107 )
...
bb -e "(eval '(+ 1 2))"
3
2019-11-14 19:47:35 +01:00
Jeroen van Dijk
5695ee3a52
Added more String parsers ( #106 )
...
* Add Double/parseDouble
* Add Boolean/parseBoolean
2019-11-14 16:13:21 +01:00
Michiel Borkent
4960ed769b
[ #102 ] Add java.util.regex.Pattern
2019-11-13 21:59:29 +01:00
Michiel Borkent
0bcb568ed8
README
2019-11-13 18:06:52 +01:00
Michiel Borkent
16f643c4dc
[ #100 ] add clojure.core/assert
2019-11-13 18:00:57 +01:00
Michiel Borkent
b49bb8ae71
[ #98 ] add file-seq
2019-11-12 22:10:18 +01:00
Arne Brasseur
f8fc878a2c
Replace vendored data.csv with the actual dependency ( #97 )
...
This does mean dropping the private read/write-record functions.
2019-11-12 11:36:56 +01:00
Michiel Borkent
82f1600f42
[ #95 ] add clojure.data.csv
2019-11-11 21:14:30 +01:00
Michiel Borkent
9729c6ff5d
[ #89 ] use :namespaces option for clojure.core rather than :bindings
2019-10-29 12:49:18 +01:00
Michiel Borkent
2584499753
fix #85 , #86 and #87
2019-10-28 11:22:12 +01:00
Michiel Borkent
7ecf2bb6ec
[ #83 ] support reader conditionals using :bb feature
2019-10-26 23:53:10 +02:00
Michiel Borkent
85aeaa354b
[ #81 ] fix socket repl issue with &env
2019-10-20 18:21:57 +02:00
Michiel Borkent
19d9db5dc5
upgrade sci: macros now have form and env args
2019-10-19 20:11:43 +02:00
sogaiu
22dd4484fa
Adapt net/wait-for-it as wait/wait-for-(port|path) ( #78 )
...
* Adapt net/wait-for-it as wait/wait-for-(port|path)
* Add createTempFile
* Expose as File/createTempFile
2019-10-14 11:24:37 +02:00
Michiel Borkent
8808f1c6f0
upgrade sci: fix for catch when expression returned nil
2019-09-26 10:57:30 +03:00
Michiel Borkent
5159a335ad
upgrade sci for try/catch, add exception bindings ( #75 )
2019-09-25 23:28:32 +02:00
Michiel Borkent
8a4ab771d8
sci: migrate to edamame ( #74 )
2019-09-24 23:35:15 +02:00
Michiel Borkent
3dabb38368
sci upgrade ( #72 )
2019-09-12 22:53:53 +02:00
Michiel Borkent
ed3c32c773
add Integer/parseInt ( #70 )
2019-09-11 23:37:25 +02:00
Michiel Borkent
697360a265
tools.cli ( #68 )
...
* tools.cli
* migrate to new namespace model
2019-09-08 23:07:58 +02:00
Michiel Borkent
b8436733a9
add more clojure.java.io stuff ( #64 )
2019-09-07 16:19:28 +02:00
Michiel Borkent
4b339e0e22
add read-line ( #63 )
2019-09-07 14:20:51 +02:00
Michiel Borkent
5ca10617d3
[#55,#56] add clojure.core.async
2019-09-07 10:43:53 +02:00
Michiel Borkent
93f154283d
Improve help text + print help when no args ( #61 )
2019-09-06 16:40:50 +02:00
Arne Brasseur
1e1712b780
Add an -e/--eval option, and automatically detect file name args ( #60 )
...
When an argument is a file name (i.e. the file exists), then treat it as a file,
rather than as an expression.
Update dev docs.
2019-09-06 15:31:54 +02:00
Michiel Borkent
910b32b6c2
[ #48 , #49 , #50 ] add conch, Thread/sleep, wait-for-it, future and atom ( #51 )
2019-09-04 14:37:07 +02:00
Michiel Borkent
bcd7a5b408
support *in* and *command-line-args* in socket-repl ( #46 )
2019-09-02 12:50:37 +02:00
Michiel Borkent
4a485d51a0
[ #44 ] socket-REPL: fix problem with EOF
2019-09-01 21:13:37 +02:00
Michiel Borkent
b87b486779
Simplify help output
2019-08-31 21:05:05 +02:00
Michiel Borkent
f1d7ed78e5
[ #40 ] add -h and -? as aliases for --help
2019-08-31 21:02:24 +02:00
Michiel Borkent
2dbb749e35
[ #41 ] socket REPL
2019-08-31 20:17:36 +02:00
Michiel Borkent
79a9ee3b69
[ #36 ] -I and -O option
2019-08-29 13:57:39 +02:00
Michiel Borkent
8e26cefc0c
[ #35 ] make -i option lazy
2019-08-29 11:29:41 +02:00
Michiel Borkent
cdb973365c
[ #31 ] respect PIPE signal
2019-08-28 23:42:15 +02:00
Michiel Borkent
b139664e56
upgrade sci ( #30 )
2019-08-27 00:06:25 +02:00
Michiel Borkent
1b228d9776
add File canExecute, setExecutable and setWritable
2019-08-18 13:16:22 +02:00
Michiel Borkent
133d40c7a3
v0.0.9
2019-08-18 12:48:27 +02:00
Michiel Borkent
8a0c9a95c8
[ #13 ] add clojure.java.io and java.io.File
2019-08-18 12:33:54 +02:00
Michiel Borkent
8e60d0cc4b
add namespace
2019-08-18 08:44:49 +02:00
Michiel Borkent
257ef9efb1
Implement BABASHKA_PRELOADS ( #24 )
2019-08-18 08:40:28 +02:00
Michiel Borkent
c876b67f95
[ #11 ] implement load-file
2019-08-17 23:44:17 +02:00
Michiel Borkent
4607016910
enable SSL via Java property ( #21 )
2019-08-17 22:19:46 +02:00
Michiel Borkent
ce35326ab4
enable SSL ( #19 )
2019-08-17 17:38:24 +02:00
Michiel Borkent
fc9c4c384f
Improvements to printing --time and System exit code ( #18 )
2019-08-17 14:50:02 +02:00
Michiel Borkent
d4fee04df6
sci as submodule
2019-08-17 12:42:20 +02:00
Michiel Borkent
d1ea9f8360
[ #14 ] implement --stream option
2019-08-16 22:22:58 +02:00
Michiel Borkent
630d788dd2
doc
2019-08-15 11:23:40 +02:00
Michiel Borkent
5b414072f9
scripting
2019-08-15 06:39:56 +02:00
Michiel Borkent
d6826593ad
add edn/read-string
2019-08-14 18:18:23 +02:00
Michiel Borkent
b2b35d0a7b
add shebang support ( #8 )
2019-08-14 13:38:39 +02:00
Michiel Borkent
a0cd0b58d8
v0.0.7
2019-08-14 00:19:15 +02:00
Michiel Borkent
5c649969f5
extracted the Small Clojure Interpreter
2019-08-11 22:31:41 +02:00
Michiel Borkent
dd9b89b5e1
Better handling of calling a non-function
2019-08-11 00:33:47 +02:00
Michiel Borkent
297a7f2111
add >
2019-08-10 23:24:06 +02:00
Michiel Borkent
0dfc8a16d6
v0.0.4
...
* add -i and -o options
* add support for -> and ->>
* add test for -io
* support normal Clojure reader tags
* add more functions
* add support for and and or
* add moar functions
* doc
2019-08-10 18:50:48 +02:00
Michiel Borkent
e2ca52215e
add functions
2019-08-10 00:26:09 +02:00
Michiel Borkent
1c12c3bfe5
add --println option
2019-08-09 23:59:19 +02:00
Michiel Borkent
9a0a4db7fd
add tests
2019-08-09 23:09:59 +02:00
Michiel Borkent
d1a02ca7e3
shorter notation for functions and regexes
2019-08-09 18:17:28 +02:00
Michiel Borkent
be91fdabde
support functions and raw input
2019-08-09 17:39:12 +02:00
Michiel Borkent
6dee50b0fa
initial commit
2019-08-09 15:43:27 +02:00