C# Preprocessor

  • Thread starter Christopher Ireland
  • Start date
C

Christopher Ireland

Hello,

I'm looking for a C# Preprocessor (shareware with source, if possible)
which has the functionality of preprocessors which already exist in
other languages, e.g.

http://www.zeitungsjunge.de/delphi/dipp/

DIPP is a Pascal Preprocessor. The purpose of DIPP is to manipulate
Pascal source code files.

DIPP can

* remove comments
* process compiler directives and switches
* remove compiler conditionals by wild card masks
* remove compiler directives by wild card masks
* insert, read, or skip include files by wild card masks
* extract units' interface sections

Such a tool would be very useful for parsing C# source files before
making them available to third parties. Can anybody suggest such a tool
to me please?

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"... the question of whether Machines Can Think ... is about as
relevant
as the question of whether Submarines Can Swim."
Edsger Wybe Dijkstra
 
F

Frans Bouma [C# MVP]

Christopher said:
Hello,

I'm looking for a C# Preprocessor (shareware with source, if possible)
which has the functionality of preprocessors which already exist in
other languages, e.g.

http://www.zeitungsjunge.de/delphi/dipp/

DIPP is a Pascal Preprocessor. The purpose of DIPP is to manipulate
Pascal source code files.

DIPP can

* remove comments
* process compiler directives and switches
* remove compiler conditionals by wild card masks
* remove compiler directives by wild card masks
* insert, read, or skip include files by wild card masks
* extract units' interface sections

Such a tool would be very useful for parsing C# source files before
making them available to third parties. Can anybody suggest such a
tool to me please?

I'm not aware of such a preprocessor for C# as the usage for such a
tool isn't that common. I've written a comment stripper once, see this
blogpost:
http://weblogs.asp.net/fbouma/archive/2005/08/19/423047.aspx

It's not 100% perfect, but as the source comes with it, you can tweak
it further. It's easily upgradable for doing other things as well, just
add more regexp's :)

FB

--
 
C

Christopher Ireland

Frans said:
I'm not aware of such a preprocessor for C# as the usage for such a
tool isn't that common. I've written a comment stripper once, see this
blogpost:
http://weblogs.asp.net/fbouma/archive/2005/08/19/423047.aspx

It's not 100% perfect, but as the source comes with it, you can tweak
it further. It's easily upgradable for doing other things as well,
just add more regexp's :)

FB

Thanks Frans!

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"... the question of whether Machines Can Think ... is about as
relevant
as the question of whether Submarines Can Swim."
Edsger Wybe Dijkstra
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top