// **************************************************************************** // Constructor: Symbol::Symbol // // Purpose: // Creates a nonterminal from its name. // // Programmer: Jeremy Meredith // Creation: April 5, 2002 // // Modifications: // Jeremy Meredith, Wed Jun 8 17:08:35 PDT 2005 // All symbols are now added to a dictionary instead of static members. // // **************************************************************************** Symbol::Symbol(Dictionary &dict, const string &s) : type(NonTerminal), terminaltype(0), displaystring(s) { index = dict.AddNonTerminal(this); }