eece496.parsetree
Class ParserVal

java.lang.Object
  extended byeece496.parsetree.ParserVal

public class ParserVal
extends java.lang.Object

BYACC/J Semantic Value for parser: Parser This class provides some of the functionality of the yacc/C 'union' directive


Field Summary
 double dval
          double value of this 'union'
 int ival
          integer value of this 'union'
 java.lang.Object obj
          object value of this 'union'
 java.lang.String sval
          string value of this 'union'
 
Constructor Summary
ParserVal(double val)
          Initialize me as a double
ParserVal(int val)
          Initialize me as an int
ParserVal(java.lang.Object val)
          Initialize me as an Object
ParserVal(java.lang.String val)
          Initialize me as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ival

public int ival
integer value of this 'union'


dval

public double dval
double value of this 'union'


sval

public java.lang.String sval
string value of this 'union'


obj

public java.lang.Object obj
object value of this 'union'

Constructor Detail

ParserVal

public ParserVal(int val)
Initialize me as an int


ParserVal

public ParserVal(double val)
Initialize me as a double


ParserVal

public ParserVal(java.lang.String val)
Initialize me as a string


ParserVal

public ParserVal(java.lang.Object val)
Initialize me as an Object