OCaml: Implement configuration parser, bind lexer tokens with schema

This commit is contained in:
Juno Takano 2025-05-08 23:10:14 -03:00
commit b0c65f40b1
12 changed files with 187 additions and 41 deletions

View file

@ -1,4 +1,16 @@
type token
type key = Schema.configuration_key
type token =
| Key of key
| Equal
| Value of string
| Space
| LineBreak
| Unknown of char
| End
val read : string -> char list list
val scan : char list list -> token list list
val string_of_tokens : token list list -> string
exception Malformed_source of string