New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ltac2: Take some small APIs from rewriter (fst/snd) #18370
Conversation
user-contrib/Ltac2/Char.v
Outdated
@@ -16,3 +16,13 @@ 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). | |||
|
|||
(** Special characters *) | |||
Ltac2 null () : char := Char.of_int 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having these as thunks is a bad idea, we should probably have char literals, or some hand-defined externals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok let's keep just fst/snd
6cd0f09
to
24067ea
Compare
Maybe a changelog is in order? |
@coqbot run full ci |
24067ea
to
5711ebd
Compare
@coqbot run full ci |
@SkySkimmer Test-suite is broken it seems. |
The output file needs updating
|
5711ebd
to
be1bbe2
Compare
@coqbot merge now |
No description provided.