STRs for negation primitive -- evaluator can negate ints
STR = state transition rule. did this unmedicated! next up will be other primitive arithmetic operations
This commit is contained in:
@@ -19,7 +19,8 @@ data Expr = Var Name
|
||||
|
||||
data Prim = IntP Int
|
||||
| IntAddP
|
||||
deriving Show
|
||||
| IntNegP
|
||||
deriving (Show, Eq)
|
||||
|
||||
infixl 2 :$
|
||||
pattern (:$) :: Expr -> Expr -> Expr
|
||||
|
||||
Reference in New Issue
Block a user