Open brandon-gong opened 2 years ago
If this is not a pressing issue that needs to be resolved immediately, could I maybe try to take a crack at it? I'm probably underqualified right now but I would love to contribute to Pyret one day (if not now, I'll come back once I've got 0190 and 1730 under my belt), and this issue doesn't seem like it requires too much understanding of the internals.
The character 𢡊 produces a lot of strange behavior with Pyret. For example, the program
causes an "internal error", while the program
(note mismatched parens) is valid syntax and outputs 2.
I'm not sure what other characters cause this issue. Interestingly Javascript says
"𢡊".length
is 1, but callingstring-to-code-point("𢡊"))
in the CPO repl returns a[list: 55370, 56394]
. So it may be some issue with this offset that causes Pyret to maybe not parse the closing tag of that block comment properly, or causes Pyret to require that extra closing parentheses in the second snippet.This bug can also be reproduced in the local version of Pyret that I got from npm (0.0.23).
File
bug.arr
:Output of
pyret bug.arr
: