Show
Ignore:
Timestamp:
07/30/08 21:42:37 (5 months ago)
Author:
Chuck.Esterbrook
Message:

Improvements to event declarations and raise statement per hopscc.
Add missing 'event' keyword. doh!
Assign event to local var to avoid race conditions.
Other refinements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/CobraParser.cobra

    r1560 r1562  
    20632063                token = .expect('RAISE') 
    20642064                exprs = .commaSepExprs('EOL') 
     2065                assert .last.which=='EOL' 
     2066                .undo  # need EOL 
    20652067                if exprs.count == 0 
    20662068                        .throwError('Expecting one or more expressions after "raise", starting with the event. If you meant to throw the currently caught exception, use "throw" instead.')