4 ms·
> Clang. Not only handwritten but the same file handles parsing C, Objective-C and C++. And it's under 3000 lines! https://github.com/llvm/llvm-project/blob/l
by veltas 5y ago
> Clang. Not only handwritten but the same file handles parsing C, Objective-C and C++.
And it's under 3000 lines!
https://github.com/llvm/llvm-project/blob/llvmorg-12.0.1/clang/lib/Parse/Parser.cpp https://github.com/llvm/llvm-project/blob/llvmorg-12.0.1/cla...
- NilsIRL 5y agoIt seems to me that the parsing code in clang is distributed over multiple files which together are way more than 3000 lines: https://github.com/llvm/llvm-project/tree/llvmorg-12.0.1/clang/lib/Parse https://github.com/llvm/llvm-project/tree/llvmorg-12.0.1/cla...