DennisMitchell / jellylanguage

Jelly is a recreational programming language inspired by J.
MIT License
860 stars 47 forks source link

\n replaced by ¶, while the opposite should happen #38

Closed GolfingSuccess closed 7 years ago

GolfingSuccess commented 7 years ago

only works perfectly in “... literals, and I can see that the convert_to_jelly function actually replaces \n with . IMO, that should not happen, since \n is a more important character than IMO. The problem appears when using Unicode, which is what you usually use to make Jelly programs.

DennisMitchell commented 7 years ago

I don't think I understand. Could you give me an example?

GolfingSuccess commented 7 years ago

When using Unicode, both ”¶ and ⁾¶¶ don't act as expected. Try it online!

kckennylau commented 7 years ago

What is the expected output?

GolfingSuccess commented 7 years ago

@kckennylau ['\n', ['\n', '\n']] (problem only occurs with Unicode)

GolfingSuccess commented 7 years ago

The thing is that my old string compressor doesn't work anymore, but for a good cause :-)