kiama.example.lambda2.AST

object AddOp

[source: kiama/example/lambda2/AST.scala]

case object AddOp
extends Op with scala.Product
Primitive integer addition.
Method Summary
def eval (l : Int, r : Int) : Int
Evaluate the oeprator on the given integer operands.
override def productArity : Int
override def productElement (arg0 : Int) : Any
override def productPrefix : java.lang.String
protected def readResolve : AnyRef
override def toString : java.lang.String
Returns a string representation of the object.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def eval(l : Int, r : Int) : Int
Evaluate the oeprator on the given integer operands.
Overrides
Op.eval

override def toString : java.lang.String
Returns a string representation of the object.

The default representation is platform dependent.

Returns
a string representation of the object.


override def productPrefix : java.lang.String
Overrides
scala.Product.scala.Product.productPrefix

override def productArity : Int
Overrides
scala.Product.scala.Product.productArity

override def productElement(arg0 : Int) : Any
Overrides
scala.Product.scala.Product.productElement

protected def readResolve : AnyRef