[LLVMdev] on LLVM parser
rkotler at mips.com
Thu Sep 26 14:45:19 PDT 2013
On 09/26/2013 10:51 AM, Rekha R wrote:
> Would like to know the parsing strategy used in LLVM - top-down,
> bottom-up, or any other?
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
Do mean the Clang parsing strategy?
You should post on the clang list in that case.
I think it's just recursive descent.
C++ with traditional lr is a disaster. I don't think anybody is trying
to make that work anymore. You need lots of left context for parsing C++
so LL is more natural. LR was a cheap way to get some left context and
made it handle a stronger language class but if you guide your parsing
using the symbol table, then LL is stronger and easier to understand.
More information about the llvm-dev