A simple boolean language with definitions implemented over Sexp.t
Conclusions:
- Is pretty easy to write a custom
sexp_of_t
andt_of_sexp
functions. - This lets us to add some sugar over the atoms, I use ?v for variables as an example here
- On top of that we can build superset of S-Expressions language which is easy to parse and very expressive
!!!! from manual !!!!
@TODO: FIX THIS!
You must report failures by raising the Of_sexp_error-exception so that then sexplib’s tools for pinpointing the location of type errors within an s-expression file will work properly.