tools/pas2c.hs
changeset 7072 159616c24bb8
parent 7069 bcf9d8e64e92
child 7075 6bd7e5ad3f2b
equal deleted inserted replaced
7071:c431a4a8ab0f 7072:159616c24bb8
   729     return . quotes . text $ escape a
   729     return . quotes . text $ escape a
   730     where
   730     where
   731         escape '\'' = "\\\'"
   731         escape '\'' = "\\\'"
   732         escape a = [a]-}
   732         escape a = [a]-}
   733 expr2C (StringLiteral s) = addStringConst s
   733 expr2C (StringLiteral s) = addStringConst s
       
   734 expr2C (PCharLiteral s) = return . doubleQuotes $ text s
   734 expr2C (Reference ref) = ref2CF ref
   735 expr2C (Reference ref) = ref2CF ref
   735 expr2C (PrefixOp op expr) = do
   736 expr2C (PrefixOp op expr) = do
   736     e <- expr2C expr
   737     e <- expr2C expr
   737     lt <- gets lastType
   738     lt <- gets lastType
   738     case lt of
   739     case lt of