Changeset 4 for src/Parser.hs
- Timestamp:
- 02/06/05 20:01:10 (4 years ago)
- svk:copy_cache_prev:
- 1041
- Files:
-
- 1 modified
-
src/Parser.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser.hs
r1 r4 11 11 12 12 module Parser where 13 import Internals 13 14 import AST 14 15 import Lexer 15 import Text.ParserCombinators.Parsec16 import Text.ParserCombinators.Parsec.Expr17 16 18 17 type StateParser a = GenParser Char () a … … 37 36 , ternOps [("??", "::")] -- Ternary 38 37 , leftOps " = := ::= += **= xx= " -- Assignment 38 -- XXX rewrite chained Ops using sepBy! 39 39 , rightOps " , " -- List Item Separator 40 40 , preOps primitiveListFunctions -- List Operator … … 71 71 parseTerm = parens parseOp 72 72 <|> parseLit 73 <|> nonTerm73 -- <|> nonTerm 74 74 <?> "term" 75 75
