The mechanism to throw an exception when there is a parsing error is rather
convoluted. This demands a simplification.
From the requirement perspective, there are only two categories of exception:
* Unexpected token exception
* Other generic error
Also, depending whether tolerant flag is set to true or not, there is another
variant of each of the above. Thus, a sufficient set of useful functions to
permit the above cases are:
* throwUnexpectedToken and tolerateUnexpectedToken
* throwError and tolerateError
Original issue reported on code.google.com by ariya.hi...@gmail.com on 27 Jan 2015 at 8:21
Original issue reported on code.google.com by
ariya.hi...@gmail.com
on 27 Jan 2015 at 8:21