Quoting Marc Santhoff <[EMAIL PROTECTED]>:
The goal in doing so would be using a specialized macro processor
I'm surprise for your question, because I started been interested in
language/compiler design because I wanted a preprocessor for Turbo
Pascal,
like Turbo C++ ;-)
Let me understand, you already have the preprocessor to transform your
"Pascal with Tags" into a "Pascal without tags" source code file ?
Something like:
-------------
program PreprocessorExample;
#define Pi 5
begin
Write('Pi value is ', Pi);
end.
-------------
Into something like :
-------------
program PreprocessorExample;
begin
Write('Pi value is ', 5);
end.
-------------
replacing tags in the source code before feeding through fpc.
Based on my experience, I have 3 ideas.
Idea 1:
Consider your "Lazarus Free Pascal with preprocessor" project
something different than a standard "Lazarus Free Pascal" project. And
by that, I MEAN, USE A DIFFERENT FILE EXTENSION.
"*.pas" -> "*.mpas"
"M" stands by "macroprocessor"
Later, you may add a plug-in or menu option to Lazarus IDE, for that,
you'll need help for the rest of the Lazarus community.
That plug in will first call the preprocessor library, and if there is
not any error, later call FreePascal Compiler (PFC) included in
Lazarus IDE
Idea 2:
Let your project keep the standard extension and project type, and add
a plug-in to Lazarus IDE, that calls your preprocessor.
Idea 3:
No preprocessor at all.
Pardon my curiosity, but what do you need a preprocessor for ?
Since including a preprocessor or other tool may have some complexity, you may
consider solving your problem using another tool.
Just my THREE cents.
Marco Ramirez
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives