Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokens w/o newline choke #1

Open
GoogleCodeExporter opened this issue Feb 1, 2016 · 3 comments
Open

Tokens w/o newline choke #1

GoogleCodeExporter opened this issue Feb 1, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Added labels: 0.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant