kiama.example.imperative.AST

class Exp

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

abstract class Exp
extends PrettyPrintable with scala.Product
Expressions.
Direct Known Subclasses:
AST.Num, AST.Var, AST.Neg, AST.Binary

Method Summary
def depth : Int
The depth of the expression, i.e., the number of levels from the root to the leaf values.
def divsbyzero : Int
The number of divisions by the constant zero in the expression.
def intadds : Int
The number of additions of integer constants in the expression.
abstract def value : Double
The numeric value of the expression.
def vars : scala.collection.immutable.Set[java.lang.String]
The set of all variable references in the expression.
Methods inherited from scala.Product
scala.Product.productElement (abstract), scala.Product.productArity (abstract), scala.Product.productPrefix
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Methods inherited from PrettyPrintable
pretty (abstract)
Method Details
abstract def value : Double
The numeric value of the expression.

def vars : scala.collection.immutable.Set[java.lang.String]
The set of all variable references in the expression.

def divsbyzero : Int
The number of divisions by the constant zero in the expression.

def depth : Int
The depth of the expression, i.e., the number of levels from the root to the leaf values.

def intadds : Int
The number of additions of integer constants in the expression.