needed to catch errors from expressions inside parentheses

after getting the expression inside a parentheses, if an error is
returned, the routine is incorrectly proceeded getting the next token;
the routine now correctly exits when an error is returned

updated regtestn script and batch to run all the tests