ThinkOpenly / sail-riscv

Sail RISC-V model
Other
12 stars 14 forks source link

Asciiize #16

Closed ThinkOpenly closed 6 months ago

ThinkOpenly commented 6 months ago

The JSON backend extracts function code verbatim into JSON format. Unfortunately, the Unicode "Less-than Or Equal To" character, when embedded in JSON, even when escaped using OCaml String.escaped does not successfully parse with Python (3.10.12).

For now, at least, revert the Unicode symbol to the ASCII equivalent, which is exactly what is used in the corresponding code and thus might even reduce the chance of confusion.