coverband / spitfire

Automatically exported from code.google.com/p/spitfire
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Tokens w/o newline choke #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
You can use the attached template to test this out. When you attempt to 
compile, the compiler 
chokes on the last close token (see attached stacktrace.

Adding a space (whitespace) after the token yields the same error.

Adding a newline will work, and cause the template to compile.

Original issue reported on code.google.com by PricklyN...@gmail.com on 30 Jun 2008 at 4:07

Attachments:

GoogleCodeExporter commented 9 years ago
I guess I should be a responsible reporter :)

So far, I've only seen this for the tokens at end of file. If there is a token 
in last position, and it does not have a 
newline at end of line, then it barfs.

Currently, I am using the latest SVN version, labeled 0.7.6 in the source.

Original comment by PricklyN...@gmail.com on 30 Jun 2008 at 4:15

GoogleCodeExporter commented 9 years ago
I see the problem. I maybe able to change the grammar to allow 'end of file' to 
close a directive. In the 
meantime, ending the directive with '#' will allow you to do this without a 
newline.

#end def<EOF> does not work.

#end def#<EOF> does.

Original comment by ms...@gmail.com on 30 Jun 2008 at 5:47

GoogleCodeExporter commented 9 years ago
Works like a charm. 

Also, meant to say 0.7.2 in my version (0.7.6 is another thing I am working 
with).

Original comment by PricklyN...@gmail.com on 2 Jul 2008 at 11:20