Emute-Lab-Instruments / uSEQ

20 stars 0 forks source link

Editor - parsing crashes with more than one newlines #96

Closed monkey-w1n5t0n closed 4 months ago

monkey-w1n5t0n commented 4 months ago

The first two evaluate fine, the third errors with malformed program:

(+ 1 2 3)

(+ 1 2
   3)

(+ 1 
   2
   3)

It seems that the parser receives the string truncated at the second newline, so it tries to parse (+ 1 2 and 3) separately.

monkey-w1n5t0n commented 4 months ago

Fixed here.