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

Error pretty printer doesn't play nicely with tabs. #166

Closed Idorobots closed 2 years ago

Idorobots commented 2 years ago

Sprinkling tabs in the code with some syntax errors in it results in this:

test/sprtn/errors/duplicate-unused.sprtn(7,8): Bad `letrec` bindings syntax, duplicate binding identifier `x`:
  5 |(letrec ((x 23)
  6 |        (y 'nope)
  7 |        (x 5))
    |        ^^^^^
  8 |  y)
  9 |(lambda (x y x)