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

Function write_rhs_function_code

Core/SoarKernel/src/rhs_functions.cpp:175–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173-------------------------------------------------------------------- */
174
175Symbol* write_rhs_function_code(agent* thisAgent, list* args, void* /*user_data*/)
176{
177 Symbol* arg;
178 char* string;
179 growable_string gs = make_blank_growable_string(thisAgent); // for XML generation
180
181 for (; args != NIL; args = args->rest)
182 {
183 arg = static_cast<symbol_struct*>(args->first);
184 /* --- Note use of false here--print the symbol itself, not a rereadable
185 version of it --- */
186 string = symbol_to_string(thisAgent, arg, false, NIL, 0);
187 add_to_growable_string(thisAgent, &gs, string); // for XML generation
188 print_string(thisAgent, string);
189 }
190
191 xml_object(thisAgent, kTagRHS_write, kRHS_String, text_of_growable_string(gs));
192
193 free_growable_string(thisAgent, gs);
194
195 return NIL;
196}
197
198/* --------------------------------------------------------------------
199 Crlf

Callers

nothing calls this directly

Calls 7

symbol_to_stringFunction · 0.85
add_to_growable_stringFunction · 0.85
print_stringFunction · 0.85
xml_objectFunction · 0.85
text_of_growable_stringFunction · 0.85
free_growable_stringFunction · 0.85

Tested by

no test coverage detected