[cfe-dev] Adding New Language

Douglas Gregor dgregor at apple.com
Wed Aug 25 07:57:07 PDT 2010


On Aug 23, 2010, at 7:01 PM, Mark Chandler wrote:

> Hey Guys,
> 
> Was thinking adding a new language support to clang (just to play around with atm) and was wondering where to start with it all. 

Unless your new language is simply a dialect of C, C++, or Objective-C, Clang isn't the right place to start because the entire design is geared toward that family of languages.

Some of its pieces might be useful for other languages: the SourceManager and Diagnostic engines, for example, could possibly be reused. If your language uses the C preprocessor (ugh!), the Lex module might be reused.

	- Doug





More information about the cfe-dev mailing list