OCaml: Implement configuration parser, bind lexer tokens with schema
This commit is contained in:
parent
c1d0788341
commit
b0c65f40b1
12 changed files with 187 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue