Sunday, November 23, 2014

Translator Exceptions – Parentheses Tokens

The process parentheses token function used to translate tokens with parentheses token (arrays and user functions) for the get operand function was modified to throw errors.  This function only returned a Good status or an error status, so a return value was no longer needed.  Like the process internal function function, the get expression call was changed to throw an error if an error status is return, which is immediately caught.  This simulates the get expression function throwing an error, which has not been modified yet to throw errors.

Unrelated to this function, the comments for the other functions modified were updated to reflect the changes made so far, which was missed when these functions were changed.  The new expression error status function added for the process internal function function was moved to the support functions section of the source file.

[branch misc-cpp-stl commit 4f03c8bd77]