ruleLabeler is an auxiliary class for the depLabeler More...
#include <dep_rules.h>
Public Member Functions | |
ruleLabeler (void) | |
Constructor. | |
ruleLabeler (const std::string &, rule_expression *) | |
bool | check (dep_tree::iterator, dep_tree::iterator) const |
Evaluate rule conditions. | |
Public Attributes | |
std::string | label |
rule_expression * | re |
std::string | ancestorLabel |
int | line |
line in the file where rule was, useful to trace and issue errors |
ruleLabeler is an auxiliary class for the depLabeler
ruleLabeler::ruleLabeler | ( | void | ) |
Constructor.
ruleLabeler::ruleLabeler | ( | const std::string & | , | |
rule_expression * | ||||
) |
bool ruleLabeler::check | ( | dep_tree::iterator | ancestor, | |
dep_tree::iterator | descendant | |||
) | const |
Evaluate rule conditions.
References rule_expression::check(), re, and TRACE.
std::string ruleLabeler::ancestorLabel |
std::string ruleLabeler::label |
line in the file where rule was, useful to trace and issue errors
Referenced by check().