ZipperAG-0.9: An implementationg of Attribute Grammars using Functional Zippers

Safe HaskellNone

Language.Grammars.ZipperAG.Examples.SmartParentesis

Documentation

data Root Source

Constructors

Root Exp 

Instances

Eq Root 
Data Root 
Ord Root 
Show Root 
Typeable Root 

data Exp Source

Constructors

Add Exp Exp 
Mul Exp Exp 
Div Exp Exp 
Sub Exp Exp 
Lit Int 

Instances

Eq Exp 
Data Exp 
Ord Exp 
Show Exp 
Typeable Exp 

bpp :: Zipper Root -> StringSource

wrapInParens :: (Eq a1, Ord a) => a -> a -> a1 -> a1 -> BoolSource

exp2str :: Exp -> StringSource

semantics :: Root -> StringSource