llvm/lib/TableGen
David Greene a761f92cd3 Add Peek
Add a peek function to let the Lexer look at a character arbitrarily
far ahead in the stream without consuming anything.  We need this to
disambiguate numbers and operands of a paste operation.  For example:

def foo#8i

Without lookahead the lexer will treat '8' as a number rather than as
part of a string to be pasted to form an identifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142512 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 13:03:35 +00:00
..
2011-10-19 13:03:30 +00:00
2011-10-19 13:03:35 +00:00
2011-10-19 13:03:35 +00:00
2011-10-19 13:02:42 +00:00
2011-10-19 13:02:42 +00:00