OCaml: Handle some edge cases; refactor parser, main.ml; add config fetcher

This commit is contained in:
Juno Takano 2025-05-09 11:19:27 -03:00
commit cb56da1462
16 changed files with 229 additions and 105 deletions

View file

@ -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 ($) = (@@)