simon987 / Much-Assembly-Required

Assembly programming game
GNU General Public License v3.0
930 stars 87 forks source link

Support for character literals #164

Closed kevinramharak closed 4 years ago

kevinramharak commented 6 years ago

Support for character literals would be nice. The assembler uses UTF-16 BigEndian encoded strings right now. This makes sense for a 16-bit byte. The question is which and how the escape sequences are handled right now. The assembler uses StringEscapeUtils.unescapeJava() right now. Maybe switch to a handwritten string parser?

simon987 commented 4 years ago

Looks like most common escape sequences are handled uncluding unicode and \0 etc. You can reopen this if you had other escape sequences in mind

kevinramharak commented 4 years ago

Uncluding or including? I'll do some tests on the ones people might actually use and if something comes up ill reopen

simon987 commented 4 years ago

*including