technoblogy / ulisp

A version of the Lisp programming language for ATmega-based Arduino boards.

Home Page:http://www.ulisp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax error in input generates multiple error messages

technoblogy opened this issue · comments

When entering an expression via the Serial Monitor, a syntax error typically triggers multiple further errors, as the rest of the line is evaluated. For example, entering:

(defun add (x) (+ #\GH x))

produces the output:

300> (defun add (x) (+ #\GH 
Error: Unknown character
300> x)
Error: 'x' undefined
300> 
Error: Incomplete list
300> )
Error: Incomplete list
300> 

The first error should cause the rest of the input to be ignored.