Idorobots / spartan

A small Lisp dialect that serves me as a test bed for programming language features.
MIT License
13 stars 3 forks source link

Parser doesn't recognize double quote escapes in strings. #186

Closed Idorobots closed 3 months ago

Idorobots commented 3 months ago
1 | "hurr\"durr"
2 | ;run
;; repl(1,7): Undefined variable `durr`, did you mean `cadr`:
;;   1 | "hurr\"durr"
;;     |        ^^^^
;;   2 | 
;; repl(1,11): Unterminated string literal, expected a closing `"` to follow:
;;   1 | "hurr\"durr"
;;     |            ^
;;   2 | 

The PEG rules for strings are very simple right now and need an update.