ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

REPL syntax errors not cleaned up - double errors. #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The chained parser is not flushing input so if the indented parser finds an 
error you get two error messages. Just annoying, not fatal.

What steps will reproduce the problem?

1. Make a syntax error on the command-line

What do you see?

A second syntax error: 'unexpected right paren'

> !2
*** Error - 'unexpected !'
~ '<LazyProcedure: cond>'
~ '<LazyProcedure: <define>>'
~ '<LazyProcedure: catch>'
~ '<LazyProcedure: while>'
~ '<EagerProc: <|http://www.genyris.org/lang/system#read-eval-print-loop|>>'
: 
2 # Bignum 
*** Error - 'unexpected right paren'
~ '<LazyProcedure: cond>'
~ '<LazyProcedure: <define>>'
~ '<LazyProcedure: catch>'

What is the expected output?

Just one error message would be better. 

Original issue reported on code.google.com by birchb1...@gmail.com on 1 Apr 2013 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 1 Apr 2013 at 10:38

GoogleCodeExporter commented 9 years ago
Fixes in 0.6.9-10-gf22c5f3

Original comment by birchb1...@gmail.com on 4 Apr 2013 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 8:44