Changeset 10059 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
04/23/06 14:04:21 (3 years ago)
Author:
audreyt
Message:

* Third-party cleanup #1:

  • Remove most of Parsec from our source tree;

the remaining Expr.hs and Token.hs will be reimplemented
to support true dynamic Perl 6 operator precedence parsing
with "is looser", "is parsed" and friends.

  • Remove Dimitry Golubovsky's UnicodeC.c from our tree. (This touches pretty most of the .hs file.)

* Update dependency to GHC 6.4.1, because UnicodeC.c and the

Unicode-aware Parsec was not there in 6.4.0.

Location:
src/Pugs/CodeGen
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/Binary.hs

    r7579 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.Binary (genBinary) where 
  • src/Pugs/CodeGen/JSON.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.JSON (genJSON) where 
  • src/Pugs/CodeGen/PIL1.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.PIL1 (genPIL1) where 
  • src/Pugs/CodeGen/PIL2.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.PIL2 ( 
  • src/Pugs/CodeGen/PIR.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43{-| 
     
    150149    trans (PVal (VRat rat)) = return $ ExpLit (LitNum (ratToNum rat)) 
    151150    -- trans (PVal (VList [])) = return $ LitInt 0 -- XXX Wrong 
     151    trans (PVal (VCode code)) 
     152        | MkCode{ subBody = Syn "block" [ Ann _ exp ] } <- code 
     153        , App (Var var) Nothing [] <- exp 
     154        = fmap ExpLV (trans (PVar var)) 
    152155    trans (PVal (VList vs)) = do 
    153156        pmc <- genArray "vlist" 
  • src/Pugs/CodeGen/Perl5.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.Perl5 (genPerl5) where 
  • src/Pugs/CodeGen/XML.hs

    r6257 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts #-} 
    2 {-# OPTIONS_GHC -#include "UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.XML (genXML) where 
  • src/Pugs/CodeGen/YAML.hs

    r9309 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    2 {-# OPTIONS_GHC -#include "../../UnicodeC.h" #-} 
    32 
    43module Pugs.CodeGen.YAML (genYAML, genParseYAML, genParseHsYAML) where