asrm_delete_terminals()

Delete result terminals.

Synopsis:

#include "asr/asrm.h"
 
int asrm_delete_terminals(asr_result_t *result, unsigned int start_index, unsigned int end_index)

Arguments:

result

A pointer to the result structure to delete terminals from.

start_index

The index from which to start the deletion.

end_index

The index of the last terminal to delete.

Library:

libasr

Description:

The asrm_delete_terminals() deletes the result terminals from start_index to end_index, inclusive.

Returns:

0 Success.

-1 An error occurred.