Skip to content
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

Escape special characters in strings #438

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Escape special characters in strings #438

merged 2 commits into from
Jan 3, 2024

Conversation

InfiniteEchoes
Copy link
Collaborator

No description provided.

@@ -22,8 +22,7 @@ Definition foo {A : Set} (o : core.option.Option.t A) : M unit :=
let γ0 := γ.["Some.0"] in
let* _a := M.copy γ0 in
let* _ : M.Val unit :=
let* α0 : ref str.t := M.read (mk_str "some
") in
let* α0 : ref str.t := M.read (mk_str "some\n") in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that the \n character is correctly interpreted by Coq as it has different rules than more strings in other languages. The syntax for strings in Coq is explained at the end of this file: https://coq.inria.fr/doc/master/stdlib/Coq.Strings.String.html

@clarus clarus merged commit b3e4f6a into main Jan 3, 2024
1 check passed
@clarus clarus deleted the gy@EscapeCharacters branch January 3, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants