maryrosecook / littlelisp

A small Lisp interpreter in JavaScript

Home Page:http://maryrosecook.com/blog/post/little-lisp-interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

String escaping doesn't work

firegurafiku opened this issue · comments

It seems the lexer have some problems when dealing with escape sequence:

> "...\"..."
'...\\"...' 
/* should be '..."...' or "...\"..." */ 

Hiya. Thanks a lot for reporting this. I think I'm going to leave this bug unfixed. My priority with the Little Lisp project is to keep the code short, readable, and mostly free of code that is there to handle edge cases. Thanks again for reporting.

commented

How am I supposed to input

"...\"..."

then? This appears to work but I'm concerned it is cross lisp portable.

(print "..."...")