MCPcopy Create free account
hub / github.com/SoarGroup/Soar / print_rl_rules

Function print_rl_rules

Core/CLI/src/cli_print.cpp:126–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void print_rl_rules(agent* thisAgent, bool intern, bool print_filename, bool full_prod)
127{
128 assert(thisAgent);
129
130 for (production* prod = thisAgent->all_productions_of_type[ DEFAULT_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next)
131 {
132 if (prod->rl_rule)
133 {
134 do_print_for_production(thisAgent, prod, intern, print_filename, full_prod);
135 }
136 }
137
138 for (production* prod = thisAgent->all_productions_of_type[ USER_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next)
139 {
140 if (prod->rl_rule)
141 {
142 do_print_for_production(thisAgent, prod, intern, print_filename, full_prod);
143 }
144 }
145
146 for (production* prod = thisAgent->all_productions_of_type[ CHUNK_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next)
147 {
148 if (prod->rl_rule)
149 {
150 do_print_for_production(thisAgent, prod, intern, print_filename, full_prod);
151 }
152 }
153}
154
155// compare_attr is used for cstdlib::qsort below.
156int compare_attr(const void* e1, const void* e2)

Callers 1

DoPrintMethod · 0.85

Calls 1

do_print_for_productionFunction · 0.85

Tested by

no test coverage detected