Closed GoogleCodeExporter closed 9 years ago
confirmed.
prism:~ oku$ nmosh
nmosh top program
nmosh> #;hoge
Condition components:
1. &lexical
2. &i/o-read
3. &who "read"
4. &message "syntax error near [<end of file>] at <string-input-port>:1. "
--
this can fixed like:
diff --git a/src/Reader.y b/src/Reader.y
index 6d74292..864dc61 100644
--- a/src/Reader.y
+++ b/src/Reader.y
@@ -87,6 +87,7 @@ datum : lexme_datum
| defining_datum
| defined_datum
| DATUM_COMMENT datum datum { $$ = $3; }
+ | DATUM_COMMENT datum END_OF_FILE {
currentVM()->readerContext()->setParsed(Object::Eof); YYACCEPT; }
| DATUM_COMMENT lexme_datum { $$ = Object::Ignore; }
| DATUM_COMMENT compound_datum { $$ = Object::Ignore; }
;
but needs more test.
Original comment by oku...@gmail.com
on 9 Jan 2011 at 1:32
cc higepon.
Original comment by oku...@gmail.com
on 9 Jan 2011 at 1:37
Original comment by hige...@gmail.com
on 31 Jan 2011 at 2:18
Original comment by hige...@gmail.com
on 31 Jan 2011 at 3:11
Fixed.
https://github.com/higepon/mosh/commit/d71c499ec531ad8ccc6ff98aec7bd4e17377a1e5
Original comment by hige...@gmail.com
on 31 Jan 2011 at 11:33
Original comment by hige...@gmail.com
on 31 Jan 2011 at 11:40
Original issue reported on code.google.com by
mrc....@gmail.com
on 9 Jan 2011 at 1:03