275 |
275 |
276 // --------------------------- FILE *output_routines |
276 // --------------------------- FILE *output_routines |
277 // |
277 // |
278 // Generate the format call for the replacement variable |
278 // Generate the format call for the replacement variable |
279 void rep_var_format(FILE *fp, const char *rep_var); |
279 void rep_var_format(FILE *fp, const char *rep_var); |
280 // Generate index values needed for determing the operand position |
280 // Generate index values needed for determining the operand position |
281 void index_temps (FILE *fp, FormDict &globals, const char *prefix = "", const char *receiver = ""); |
281 void index_temps (FILE *fp, FormDict &globals, const char *prefix = "", const char *receiver = ""); |
282 // --------------------------- |
282 // --------------------------- |
283 |
283 |
284 virtual bool verify(); // Check consistency after parsing |
284 virtual bool verify(); // Check consistency after parsing |
285 |
285 |
342 int rep_var_index(const char *rep_var); |
342 int rep_var_index(const char *rep_var); |
343 int num_args() { return _parameter_name.count(); } |
343 int num_args() { return _parameter_name.count(); } |
344 |
344 |
345 // --------------------------- Code Block |
345 // --------------------------- Code Block |
346 // Add code |
346 // Add code |
347 void add_code(const char *string_preceeding_replacement_var); |
347 void add_code(const char *string_preceding_replacement_var); |
348 // Add a replacement variable or one of its subfields |
348 // Add a replacement variable or one of its subfields |
349 // Subfields are stored with a leading '$' |
349 // Subfields are stored with a leading '$' |
350 void add_rep_var(char *replacement_var); |
350 void add_rep_var(char *replacement_var); |
351 |
351 |
352 bool verify(); |
352 bool verify(); |