#include <GStart.hpp>
Inheritance diagram for GStart:
Public Member Functions | |
GStart () | |
Result * | execute (Context &context) |
std::string | toString (Context &context) |
Grammar * | clone () |
GStart::GStart | ( | ) |
Creates a new start symbol, presumably to begin a new program.
Grammar * GStart::clone | ( | ) | [virtual] |
Begins execution of the program by calling this method on it's child and passing back the value.
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.
[in] | context |
Implements Grammar.