Library Ltac2.Char


Require Import Ltac2.Init.
Require Ltac2.Int.

Ltac2 @external of_int : int -> char := "coq-core.plugins.ltac2" "char_of_int".
Ltac2 @external to_int : char -> int := "coq-core.plugins.ltac2" "char_to_int".

Ltac2 equal (x : char) (y : char) : bool := Int.equal (to_int x) (to_int y).
Ltac2 compare (x : char) (y : char) : int := Int.compare (to_int x) (to_int y).