GStart Class Reference

Start Symbol. More...

#include <GStart.hpp>

Inheritance diagram for GStart:

Grammar List of all members.

Public Member Functions

 GStart ()
Resultexecute (Context &context)
std::string toString (Context &context)
Grammarclone ()

Detailed Description

Start Symbol.

Author:
Stephen E. Baker
Date:
2006-2007
Version:
1.0
BNF requires a start symbol. This symbol is used to begin every program.


Constructor & Destructor Documentation

GStart::GStart (  ) 

Creates a new start symbol, presumably to begin a new program.


Member Function Documentation

Grammar * GStart::clone (  )  [virtual]

See also:
Grammar::clone

Implements Grammar.

Result * GStart::execute ( Context context  )  [virtual]

Begins execution of the program by calling this method on it's child and passing back the value.

See also:
Grammar::execute

Implements Grammar.

string GStart::toString ( Context context  )  [virtual]

Adds the outer most text to the string representation of the expression. Because CNGGGPS generates LISP programs, this adds a "(lambda(args)(" to the beginning and a ")" to the end.

Parameters:
[in] context 
See also:
Grammar::toString

Implements Grammar.


The documentation for this class was generated from the following files:
Generated on Mon Jan 15 01:21:05 2007 for Creatively Named Grammar Guided Genetic Programming System by  doxygen 1.4.7