yanais/ocaml/libparse/literal.mli
2024-02-10 03:39:07 +01:00

19 lines
288 B
OCaml

type int_size = IPow of char | ISize
type ty_lit =
| Type
| Bool
| Char
| String
| TIntSize
| UnsInt of int_size
| SigInt of int_size
type lit =
| LTy of ty_lit
| LIntSize of int_size
| LNatural of int
val of_str : string -> lit Option.t
val to_str : lit -> string