[Mono-list] MCS Parser

Miguel de Icaza miguel@ximian.com
02 May 2002 23:02:41 -0400


> Hi, I had a study on the cs-parser.jay file.
>     It does not contain any code to read the preprocess key words, such as #define #if, #endif. I am suspecting that this
> parser does not keep complete information about a cs file. 

Pre-processing directives are handled by the tokenizer
(cs-tokenizer.cs).  The tokenizer works with the Location class to keep
this kind of information.

>   So the code that is dumpped from parser tree would be different from the original parsed code?

I am confused by what you want to do.

Miguel.