OCaml: Handle some edge cases; refactor parser, main.ml; add config fetcher
This commit is contained in:
parent
6096817932
commit
cb56da1462
16 changed files with 229 additions and 105 deletions
|
|
@ -1,5 +1,9 @@
|
|||
(* an 'alias' is an alternate name with minor or no alterations to behavior *)
|
||||
|
||||
(* exceptions *)
|
||||
exception Malformed_source = Exceptions.Malformed_source
|
||||
exception Malformed_state = Exceptions.Malformed_state
|
||||
|
||||
(* logging *)
|
||||
let print = print_endline
|
||||
let elog = Log.elog
|
||||
|
|
@ -9,6 +13,7 @@ let str_int = string_of_int
|
|||
let chars_str = Text.chars_of_string
|
||||
let str_chars = Text.string_of_chars
|
||||
let str_char = String.make 1
|
||||
let str_dbool = Schema.string_of_default_bool
|
||||
|
||||
(* control flow & precedence *)
|
||||
let ($) = (@@)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue