Changeset 4 for src/Parser.hs

Show
Ignore:
Timestamp:
02/06/05 20:01:10 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
1041
Message:

* This be 6.0.0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Parser.hs

    r1 r4  
    1111 
    1212module Parser where 
     13import Internals 
    1314import AST 
    1415import Lexer 
    15 import Text.ParserCombinators.Parsec 
    16 import Text.ParserCombinators.Parsec.Expr 
    1716 
    1817type StateParser a = GenParser Char () a 
     
    3736    , ternOps  [("??", "::")]                           -- Ternary 
    3837    , leftOps  " = := ::= += **= xx= "                  -- Assignment 
     38    -- XXX rewrite chained Ops using sepBy! 
    3939    , rightOps " , "                                    -- List Item Separator 
    4040    , preOps   primitiveListFunctions                   -- List Operator 
     
    7171parseTerm = parens parseOp 
    7272    <|> parseLit 
    73     <|> nonTerm 
     73--  <|> nonTerm 
    7474    <?> "term" 
    7575