seanjensengrey / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

dot should not be a delimiter #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
mosh> #t.#f
#t

What is the expected output? What do you see instead?
Expected an error, instead it reads as #t.

What version of the product are you using? On what operating system?
Mosh R6RS scheme interpreter, version 0.2.7 (mosh-0.2.7-362-gd0431ee Sun, 17 
Jul 2011 17:29:44 +0900)
Linux glimworm 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 
GNU/Linux

Please provide any additional information below.
I think this is already known, as it is caught in the test suite, in 
'src/test-data.scm'.  However I couldn't find it in the bug tracker.
It seems to be possible to resolve this just by removing the dot character from 
the DELMITER pattern in src/scanner.re.  The resulting mosh tests fine.
However this seems weird, as the DELMITER class is otherwise an exact copy of 
the grammar from R6RS, but with the dot added.
Presumably the "." was originally added for some reason, so maybe I am missing 
something.
Anyway I enclose the trivial patch for reference.

Original issue reported on code.google.com by amoe...@gmail.com on 18 Jul 2011 at 6:14

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your patch.
The patch was applied.

>Presumably the "." was originally added for some reason, so maybe I am missing 
something.

Yes. There was some reason, but I don't remember.
But your patch passes many tests.
So it's okay.

Cheers.

Original comment by hige...@gmail.com on 19 Jul 2011 at 2:15