semantic-lex-catch-errors

semantic-lex-catch-errors is a Lisp macro in `lex.el'.

(semantic-lex-catch-errors SYMBOL &rest FORMS)

Using SYMBOL, execute FORMS catching lexical errors.
If FORMS results in a call to the parser that throws a lexical error,
the error will be caught here without the buffer's cache being thrown
out of date.
If there is an error, the syntax that failed is returned.
If there is no error, then the last value of FORMS is returned.