diff --git a/src/babashka/impl/Boolean.clj b/src/babashka/impl/Boolean.clj new file mode 100644 index 00000000..ee2e1853 --- /dev/null +++ b/src/babashka/impl/Boolean.clj @@ -0,0 +1,15 @@ +(ns babashka.impl.Boolean + {:no-doc true} + (:refer-clojure :exclude [list])) + +(set! *warn-on-reflection* true) + +(defn parseBoolean [^String x] + (Boolean/parseBoolean x)) + +(def boolean-bindings + {'Boolean/parseBoolean parseBoolean}) + +(comment + + ) diff --git a/src/babashka/impl/Double.clj b/src/babashka/impl/Double.clj new file mode 100644 index 00000000..50882b12 --- /dev/null +++ b/src/babashka/impl/Double.clj @@ -0,0 +1,15 @@ +(ns babashka.impl.Double + {:no-doc true} + (:refer-clojure :exclude [list])) + +(set! *warn-on-reflection* true) + +(defn parseDouble [^String x] + (Double/parseDouble x)) + +(def double-bindings + {'Double/parseDouble parseDouble}) + +(comment + + ) diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 92f3ffb0..4a764068 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -3,6 +3,8 @@ (:require [babashka.impl.File :refer [file-bindings]] [babashka.impl.Integer :refer [integer-bindings]] + [babashka.impl.Double :refer [double-bindings]] + [babashka.impl.Boolean :refer [boolean-bindings]] [babashka.impl.Pattern :refer [pattern-bindings]] [babashka.impl.System :refer [system-bindings]] [babashka.impl.Thread :refer [thread-bindings]] @@ -153,6 +155,8 @@ Everything after that is bound to *command-line-args*.")) file-bindings thread-bindings integer-bindings + double-bindings + boolean-bindings exception-bindings pattern-bindings))