Changeset 15198 for src/Pugs/Parser
- Timestamp:
- 02/06/07 21:22:31 (22 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Parser/Operator.hs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Parser/Operator.hs
r15165 r15198 69 69 termLevel = circumOps (Set.singleton (MkOpName (cast "\\( )"))) 70 70 methLevel = methOps (opWords " . .+ .? .* .+ .() .[] .{} .<<>> .= ") 71 incrLevel = postOps incrOps ++ preOps incrOps71 incrLevel = postOps incrOpsPost ++ preOps incrOpsPre 72 72 expoLevel = rightOps (opWords " ** ") 73 73 symbLevel = preSyn (Set.singleton (MkOpName (cast "|"))) ++ preOps symbPreops … … 79 79 symbPreops :: Set OpName 80 80 symbPreops = opWords " = ! + - ~ ? +^ ~^ ?^ \\ ^" 81 incrOps :: Set OpName 82 incrOps = opWords " ++ -- " 81 82 incrOpsPre :: Set OpName 83 incrOpsPre = opWords " ++ -- " 84 85 incrOpsPost :: Set OpName 86 incrOpsPost = opWords " ++ -- i " 83 87 84 88 -- The lower levels of immutable ops. This will be replaced once we have … … 354 358 | otherwise 355 359 = sigil ++ name 356 makeFileTestOp ch = conOp ("&prefix:-" ++ [ch])357 360 conOp name = return $ \x -> case x of 358 361 Syn "" [] -> con name [] … … 649 652 parseFull = expRule (buildExpressionParser opsFull tightExprs) 650 653 parseLit = expRule (buildExpressionParser opsLoose tightExprs) 651 parsePost = pp "&postfix:" $ incrOps `Set.union` r_post tights654 parsePost = pp "&postfix:" $ incrOpsPost `Set.union` r_post tights 652 655 -- parsePre = pp "&prefix:" $ symbPreops `Set.union` r_pre tights 653 656 -- parsePreNam = pp "&" $ r_named tights `Set.union` r_opt tights
