Argyrios Kyrtzidis
c7e67a04c3
Introduce annotation tokens, a special kind of token, created and used only by the parser to replace a group of tokens with a single token encoding semantic information.
...
Will be fully utilized later for C++ nested-name-specifiers.
llvm-svn: 58911
2008-11-08 16:17:04 +00:00
Argyrios Kyrtzidis
91c3f526dc
Line endings: CRLF -> LF
...
llvm-svn: 55829
2008-09-05 08:53:53 +00:00
Argyrios Kyrtzidis
75b34536d0
Rename Preprocessor::DisableBacktrack -> Preprocessor::CommitBacktrackedTokens.
...
llvm-svn: 55281
2008-08-24 12:29:43 +00:00
Argyrios Kyrtzidis
bd024c7fdb
Change line endings: CRLF -> LF
...
llvm-svn: 55235
2008-08-23 12:05:53 +00:00
Argyrios Kyrtzidis
a65490c5df
Allow nested backtracks.
...
llvm-svn: 55204
2008-08-22 21:27:50 +00:00
Argyrios Kyrtzidis
b3dd1e0889
Allow the preprocessor to cache the lexed tokens, so that we can do efficient lookahead and backtracking.
...
1) New public methods added:
-EnableBacktrackAtThisPos
-DisableBacktrack
-Backtrack
-isBacktrackEnabled
2) LookAhead() implementation is replaced with a more efficient one.
3) LookNext() is removed.
llvm-svn: 54611
2008-08-10 13:15:22 +00:00