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 accept `|` as a valid character unless it's within a string. #180

Closed Idorobots closed 8 months ago

Idorobots commented 8 months ago

The rule for Special symbols is missing the bar.

;; Spartan REPL. Type ;help for help.
2 | "test | bar"
;; "test | bar"
3 | test-|bar
;; input(1,0): Not a valid Spartan file:
;;   1 |23
;;     |^^
;;   2 |"test | bar"
;;     |^^^^^^^^^^^^
;;   3 |test-|bar
;;     |^^^^^^^^^
;;   4 |
;;     |