Show
Ignore:
Timestamp:
12/10/05 13:24:15 (3 years ago)
Author:
gaal
Message:

* Refactor Cxt, Pos, and Prag nodes in Exp to a unified Ann

(for Annotation) type. This should ease work on lexical pragmas.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile/Pugs.hs

    r7843 r8153  
    6161            , text "return" <+> parens (text $ "Syn " ++ show syn ++ " exps") 
    6262            ] 
    63     compile (Cxt cxt exp) = compileShow2 "Cxt" cxt exp 
    64     compile (Pos pos exp) = compileShow2 "Pos" pos exp 
     63    compile (Ann (Cxt cxt) exp) = compileShow2 "Cxt" cxt exp 
     64    compile (Ann (Pos pos) exp) = compileShow2 "Pos" pos exp 
     65    compile (Ann (Prag prag) exp) = compileShow2 "Prag" prag exp 
    6566    compile (Pad scope pad exp) = do 
    6667        padC <- compile pad