Changeset 1564 for cobra/trunk/Source/CobraParser.cobra
- Timestamp:
- 07/31/08 05:41:13 (5 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/CobraParser.cobra (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/CobraParser.cobra
r1562 r1564 2380 2380 'TILDE': _binaryOpPrec['PLUS']+1, 2381 2381 'NOT': _binaryOpPrec['AND']+1, 2382 'ALL': _binaryOpPrec['AND']+1, # have to admit I'm just guessing at the precendence level for 'any' and 'all'. experience will tell. TODO: fix or not, then retire this comment (2008-07-31) 2383 'ANY': _binaryOpPrec['AND']+1, 2382 2384 'REF': _binaryOpPrec['STARSTAR']+1, 2383 2385 'OLD': _binaryOpPrec['STARSTAR']+1, … … 2479 2481 token = .grab 2480 2482 prec = _unaryOpPrec[peek] 2483 unaryExpr = .expression(prec) 2481 2484 branch token.which 2482 on 'OLD' 2483 return OldExpr(token, .expression(prec)) 2484 on 'REF' 2485 refTo = .expression(prec) 2486 return RefExpr(token, refTo) 2487 else 2488 return UnaryOpExpr(token, peek, .expression(prec)) 2485 on 'ALL', return AllExpr(token, unaryExpr) 2486 on 'ANY', return AnyExpr(token, unaryExpr) 2487 on 'OLD', return OldExpr(token, unaryExpr) 2488 on 'REF', return RefExpr(token, unaryExpr) 2489 else, return UnaryOpExpr(token, peek, unaryExpr) 2489 2490 # TODO: make a branch statement 2490 2491 else if peek=='LPAREN'
