-
Notifications
You must be signed in to change notification settings - Fork 6
/
excel.cljc
32 lines (29 loc) · 901 Bytes
/
excel.cljc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(ns axel-f.excel
(:refer-clojure :exclude [compile])
(:require [axel-f.excel.base64 :as base64]
[axel-f.excel.hash :as hash]
[axel-f.excel.json :as json]
[axel-f.excel.date :as date]
[axel-f.excel.jws :as jws]
[axel-f.excel.jwt :as jwt]
[axel-f.excel.keys :as keys]
[axel-f.excel-lite :as excel-lite]
[axel-f.runtime :as runtime]))
(def base-env
(merge
excel-lite/base-env
base64/env
hash/env
json/env
date/env
jws/env
jwt/env
keys/env))
(defn compile
([formula] (compile formula nil))
([formula extra-env]
(runtime/compile formula base-env extra-env)))
(defn suggestions
([incomplete-formula context] (suggestions incomplete-formula context nil))
([incomplete-formula context extra-env]
(runtime/suggestions incomplete-formula context base-env extra-env)))