mrozycki / space-lang

What if identifiers could be anything? Langjam submission
6 stars 0 forks source link

Add escape sequence handling to strings #1

Closed mrozycki closed 3 years ago

mrozycki commented 3 years ago

Currently the lexer expects a string to start with a singular quotation mark and end with a singular quotation mark. It is impossible to have an escaped quotation mark within the string. It is impossible to have any other escape sequences, like \n, \t or \. Add support for at least these four sequences: \", \n, \t, \