[antlr-interest] query

Sohail Somani sohail at taggedtype.net
Sun Oct 23 12:08:00 PDT 2005


On Sun, 2005-23-10 at 19:02 +0530, Desai Nishitkumar Ashokkumar wrote:
> Hello sir,
>  		I m doing M.Tech at IIT bombay, India. My project is on 
> re-engineering from procedural to object oriented program. And I am trying 
> to apply that on linux kernel. Currently I am trying to make any c code 
> compilable by c++ code. I am using GNU C grammar given in ANTLR grammars.
> My doubt is is Preprocessing done by ANTLR or is there any option to do 
> that. and can I apply tool (translation tool) to entire project directory 
> such that tool itself take care of #include and #define statement ??

FYI: Structs + Functions != procedural, Classes != object-oriented.

Speaking from personal experience, it is entirely possible to write an
object oriented kernel in C. I'd imagine the linux kernel is no
different.

Sohail



More information about the antlr-interest mailing list