summaryrefslogtreecommitdiff
path: root/src/json.sig
diff options
context:
space:
mode:
authorGravatar Simon Van Casteren <simon.van.casteren@gmail.com>2019-12-08 20:50:40 +0100
committerGravatar Simon Van Casteren <simonvancasteren@localhost.localdomain>2019-12-13 11:46:57 +0100
commitf5bfb7ab3a23485230a97b87ac5839eea8c79486 (patch)
treed9c4efba39fa62a24db335a6c44347682ec3ef7f /src/json.sig
parente6b943962dd1bf522a67178220cb1753d34240fa (diff)
Added initial version of lsp
Diffstat (limited to 'src/json.sig')
-rw-r--r--src/json.sig13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/json.sig b/src/json.sig
new file mode 100644
index 00000000..f92ef495
--- /dev/null
+++ b/src/json.sig
@@ -0,0 +1,13 @@
+signature JSON = sig
+ datatype json =
+ Array of json list
+ | Null
+ | Float of real
+ | String of string
+ | Bool of bool
+ | Int of int
+ | Obj of (string * json) list
+
+ val parse: string -> json
+ val print: json -> string
+end