stx::Grammar::PNConstant Class Reference

Constant value nodes of the parse tree. More...

Inheritance diagram for stx::Grammar::PNConstant:

stx::ParseNode List of all members.

Public Member Functions

 PNConstant (AnyScalar::attrtype_t type, std::string strvalue)
 Assignment from the string received from the parser.
 PNConstant (const AnyScalar &_value)
 constructor for folded constant values.
virtual AnyScalar evaluate (const class SymbolTable &) const
 Easiest evaluation: return the constant.
virtual bool evaluate_const (AnyScalar *dest) const
 Returns true, because value is constant.
virtual std::string toString () const
 String representation of the constant AnyScalar value.

Private Attributes

AnyScalar value
 The constant parsed value.

Detailed Description

Constant value nodes of the parse tree.

This class holds any of the three constant types in the enclosed AnyScalar object.

Definition at line 319 of file ExpressionParser.cc.


The documentation for this class was generated from the following file:
Generated on Tue Jul 17 16:51:58 2007 for STX Expression Parser by  doxygen 1.5.2