fix: Handle escaped char

This commit is contained in:
Lucàs
2024-07-05 01:35:03 +02:00
parent d81b96779a
commit 6df363c78d
3 changed files with 35 additions and 17 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ let string_of_literal = function
| Integer i -> "Integer(" ^ string_of_int i ^ ")"
| Float f -> "Float(" ^ string_of_float f ^ ")"
| Character c -> "Character('" ^ Char.escaped c ^ "')"
| String s -> "String(\"" ^ s ^ "\")"
| String s -> "String(\"" ^ String.escaped s ^ "\")"
| Boolean b -> "Boolean(" ^ string_of_bool b ^ ")"
| Null -> "Null"