[Mono-devel-list] RFC: how to manage almost duplicate parser/tokenizer

Atsushi Eno atsushi at ximian.com
Thu Mar 17 01:40:45 EST 2005


Hi,

>>Hmm, I think there is no preprocessor directive for jay. And those
>>files are compiled at a time in shape of .cs files.
> 
> By that I mean, maybe we could add support for such a directive. I would
> think that it would not be too hard of an addition.

Okay. So I made tiny patch for jay (am so lazy to make big changes).
Attached patch for jay adds "-d BlahBlah" to insert #define BlahBlah
on top of the output. (It is somewhat C# specific, but users could
just ignore this option when they don't want to use it.)

With this jay + simple sed solution, now my patch became compact.

If no further suggestions and problem on my patch, I'll checkin
them later.

Atsushi Eno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jay-output-userdef.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050317/d998e0f3/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xslt_pattern_parser.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050317/d998e0f3/attachment-0001.pl 


More information about the Mono-devel-list mailing list