Several convenience functions were added to the Token Error structure to make it syntactically easier to use. These include a function operator function with no arguments for returning the status of the error, a function operator function with a status argument for checking if the error status is the passed status, and an assignment operator function taking a status value to assign to the error status.
The translator function operator function was modified to throw errors instead of setting a local status variable, which is then used to throw the error at the end of the function. Eventually the get expressions and get commands functions will throw exceptions for errors and the local status variable won't be necessary.
The try block in the tester parse input function was reformatted where the try-catch blocks were moved outside of the forever loop to the function block. The return statement in the catch block could then be removed.
[branch misc-cpp-stl commit c639347b07]
Friday, November 21, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)