Changeset 15710 for src/Pugs/Parser

Show
Ignore:
Timestamp:
03/14/07 16:33:44 (21 months ago)
Author:
audreyt
Message:

* Chase "is context" pad structure changes in other modules.

This concludes the contextual-declarations batch.

Location:
src/Pugs/Parser
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Parser/Export.hs

    r15645 r15710  
    2222            exps <- forM (filter defined subs) $ \val -> do 
    2323                let name    = '&':subname 
    24                     mkSym   = _Sym scope name (Val val) Noop 
     24                    mkSym   = _Sym scope name mempty (Val val) Noop 
    2525                doExport scope mkSym 
    2626            case scope of 
  • src/Pugs/Parser/Operator.hs

    r15644 r15710  
    137137        | otherwise                 = Ann Parens (Syn "," [inner]) 
    138138    forceParens (Ann x inner)       = Ann x (forceParens inner) 
    139     forceParens (Sym x y init inner)= Sym x y init (forceParens inner) 
     139    forceParens (Sym x y flags init inner) = Sym x y flags init (forceParens inner) 
    140140    forceParens (Pad x y inner)     = Pad x y (forceParens inner) 
    141141    forceParens exp                 = exp 
     
    184184 
    185185hashPadEntry :: PadEntry -> Int32 
    186 hashPadEntry EntryConstant{ pe_proto = v }  = I32# (unsafeCoerce# v) 
     186hashPadEntry PEConstant{ pe_proto = v }  = I32# (unsafeCoerce# v) 
    187187hashPadEntry x                              = I32# (unsafeCoerce# (pe_store x)) 
    188188