Class rule implements a rule of a grammar. More...
#include <grammar.h>
Public Member Functions | |
rule (const std::string &, const std::list< std::string > &, const int) | |
Constructors of the subclass rule. | |
rule (const rule &r) | |
rule () | |
rule & | operator= (const rule &) |
void | set_governor (const int) |
set rule governor | |
unsigned int | get_governor (void) const |
get rule governor | |
std::string | get_head () const |
get rule head. | |
std::list< std::string > | get_right () const |
get right part of the rule. | |
Protected Attributes | |
std::string | head |
Head of the rule. | |
std::list< std::string > | right |
Right part of the rule. | |
int | gov |
Position of the rule Governor of. |
Class rule implements a rule of a grammar.
rule::rule | ( | const std::string & | , | |
const std::list< std::string > & | , | |||
const | int | |||
) |
Constructors of the subclass rule.
rule::rule | ( | const rule & | r | ) |
rule::rule | ( | ) |
unsigned int rule::get_governor | ( | void | ) | const |
get rule governor
std::string rule::get_head | ( | ) | const |
get rule head.
std::list<std::string> rule::get_right | ( | ) | const |
get right part of the rule.
void rule::set_governor | ( | const | int | ) |
set rule governor
int rule::gov [protected] |
Position of the rule Governor of.
std::string rule::head [protected] |
Head of the rule.
std::list<std::string> rule::right [protected] |
Right part of the rule.