[cfe-dev] Advice for front-end design?

Joachim Durchholz via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 17 22:36:24 PDT 2015


Hi all,

I'm starting work on a new language (not going to make excuses for 
that), and my initial plan was to use LLVM as backend.

Looking at the Kaleidoscope tutorial, I found that LLVM-as-backend makes 
no attempt at supporting the frontend side (d'oh); in particular, it 
doesn't offern patterns or best practices for organizing things like 
input stream handling, line/column number bookkeeping, or error message 
generation.

Would it make sense to turn to clang for that?
If yes, where should I start reading?

Regards,
Jo



More information about the cfe-dev mailing list