Scanner / Parser for D2

Michel Fortin michel.fortin at michelf.com
Wed Apr 22 16:21:29 PDT 2009


On 2009-04-22 16:33:05 -0400, Arild Boes <aboesx at gmail.com> said:

> Hello,
> 
> I'd like to have a c++ parser for D. I realized, that the full source 
> code of DMD was avaliable and went to fetch it. (thanks for that btw!).
> 
> However it seems rather complex, and I sure could use some quick 
> insights regarding how the lexer / scanner part could be used, 
> favorably seperately, from the rest of the compiler.
> 
> The simple goal is to fiddle with color coding in vs 2008 with the 
> language SDK, and then perhaps move on to more interesting stuff.

I've done something like it in my D plugin for Xcode. For Xcode 3 I've 
created a grammar for Xcode's built-in scanner, but for earlier 
versions I'm using the lexer from an old version of DMD. Perhaps you'd 
like to take a look.
<http://michelf.com/projects/d-for-xcode/>


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list