module SkelCalc where -- Haskell module generated by the BNF converter import AbsCalc import ErrM type Result = Err String failure :: Show a => a -> Result failure x = Bad $ "Undefined case: " ++ show x transExp :: Exp -> Result transExp x = case x of EAdd exp0 exp -> failure x ESub exp0 exp -> failure x EMul exp0 exp -> failure x EDiv exp0 exp -> failure x EInt n -> failure x