[LLVMdev] on LLVM parser

Reed Kotler rkotler at mips.com
Thu Sep 26 14:45:19 PDT 2013

On 09/26/2013 10:51 AM, Rekha R wrote:
> Hi,
> Would like to know the parsing strategy used in LLVM - top-down,
> bottom-up, or any other?
> --
> Rekha
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

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 mailing list