THRIFT-1274. compiler: fail compilation if an unexpected token is encountered
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 19 Aug 2011 18:27:47 +0000 (18:27 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 19 Aug 2011 18:27:47 +0000 (18:27 +0000)
commit235f8b5899b2c5b75cb83975695da1377f0cac0c
treec14e5157fdf1f200973ba2ecfc8566b439505955
parent0b7eeb59750fef5be018e6ec406da2da5be13c1b
THRIFT-1274. compiler: fail compilation if an unexpected token is encountered

This patch makes the lexer throw an exception when an unexpected token is encountered, as opposed to the standard behavior of just printing it out and doing nothing.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159733 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/thriftl.ll