This extends the shell of llvm-rc tool with the ability of tokenization of the input files. Currently, ASCII and ASCII-compatible UTF-8 files are supported.
This is an LLVM reimplementation of PoC tool by Nico Weber.
Paths
| Differential D35957
[llvm-rc] Add .rc scripts tokenizer. ClosedPublic Authored by mnbvmar on Jul 27 2017, 2:57 PM.
Details Summary This extends the shell of llvm-rc tool with the ability of tokenization of the input files. Currently, ASCII and ASCII-compatible UTF-8 files are supported. This is an LLVM reimplementation of PoC tool by Nico Weber.
Diff Detail
Event Timeline
Comment Actions This seems basically done. @zturner do you have any unaddressed comments?
This revision is now accepted and ready to land.Aug 8 2017, 10:36 AM Closed by commit rL310621: Add .rc scripts tokenizer. (authored by mnbvmar). · Explain WhyAug 10 2017, 9:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 109012 llvm/test/tools/llvm-rc/Inputs/tokens.rc
llvm/test/tools/llvm-rc/tokenizer.test
llvm/tools/llvm-rc/CMakeLists.txt
llvm/tools/llvm-rc/ResourceScriptToken.h
llvm/tools/llvm-rc/ResourceScriptToken.cpp
llvm/tools/llvm-rc/ResourceScriptTokenList.h
llvm/tools/llvm-rc/llvm-rc.cpp
|
What about comment markers and preprocessor directives, pragma directives, and preprocessor operators?