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

Propagate Float literal changes from Charon #332

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/ExtractTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ let extract_literal (span : Meta.span) (fmt : F.formatter) (is_pattern : bool)
in
F.pp_print_string fmt c;
if inside then F.pp_print_string fmt ")")
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise __FILE__ __LINE__ span
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

(** Format a unary operation

Expand Down
4 changes: 2 additions & 2 deletions compiler/PureUtils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ let compute_literal_type (cv : literal) : literal_type =
| VScalar sv -> TInteger sv.int_ty
| VBool _ -> TBool
| VChar _ -> TChar
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise_opt_span __FILE__ __LINE__ None
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

let var_get_id (v : var) : VarId.id = v.id

Expand Down
Loading