History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-672
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Doug H
Reporter: Ayende Rahien
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Parser error on one line scritps in WSA Boo

Created: 24/Feb/06 05:39 PM   Updated: 05/Mar/06 06:51 AM
Component/s: Parser
Affects Version/s: None
Fix Version/s: 0.7.6

Time Tracking:
Not Specified

File Attachments: 1. Text File eof-wsa-bug.patch (2 kb)
2. File failing.boo (0.0 kb)

Issue Links:
Related
 


 Description  « Hide
I can't compile the following script using:
booc -wsa failing.boo

Adding a line break make it work.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 24/Feb/06 06:58 PM
In the normal boo parser the IndentTokenStreamFilter tacks on an EOS token at the end of the file.
Since the wsa parser doesn't use that filter, I changed wsaboo.g to fix this. The eos rule checks for EOF. And the EOF in the start rule is optional.

You can make test cases in jedit by going to
Utilities->Global Options->Text Area->Hide final end of line -> uncheck that
and delete the final end of line.