Module Ast_convenience_402.Constant

Provides abstraction over Asttypes.constant type

type t =
| Pconst_integer of string * char option
| Pconst_char of char
| Pconst_string of string * string option
| Pconst_float of string * char option
exception Unknown_literal of string * char

Converts Asttypes.constant to Constant.t

Converts Constant.t to Asttypes.constant. Raises Unknown_literal if conversion fails