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

Key: BOO-836
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Marcus Griep
Reporter: Matt McElheny
Votes: 0
Watchers: 0
Operations

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

WSA Boo "end" keyword required for some blocks and not others

Created: 12/Jun/07 08:47 AM   Updated: 09/Oct/07 02:50 PM
Component/s: Parser
Affects Version/s: 0.7.7
Fix Version/s: 0.8

Time Tracking:
Not Specified

File Attachments: 1. Text File tryend.patch (3 kb)

Environment: N/A
Issue Links:
Related
 


 Description  « Hide
"if, elif, else" constructs require the "end" keyword only once:
#==========
if (condition1):
print '1st'
elif (condition2):
print '2nd'
else:
print 'Something else'
end
#==========

"try, except, ensure" constructs require the "end" keyword over and over for every block:
#==========
try:
raise DirectoryNotFoundException()
end
except e as FileNotFoundException:
print 'FNF'
end
except e:
print 'Other'
end
ensure:
print 'The end'
end
#==========

Standardize on one method of handling blocks. See discussion here:

http://groups.google.com/group/boolang/browse_thread/thread/269549c0f7b907de



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Marcus Griep - 06/Oct/07 08:14 PM
Patch to fix incorporated in related issue.

Rodrigo B. de Oliveira - 09/Oct/07 01:41 PM
Please submit a specific patch fixing this issue.

Marcus Griep - 09/Oct/07 02:23 PM
Seperated out patch for wsa end statements; updated test cases and added additional test case.

Rodrigo B. de Oliveira - 09/Oct/07 02:50 PM
Patch applied. Thanks!