[fpc-pascal] Proper preprocessor?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Wed Jun 20 18:37:59 CEST 2018


On 20/06/18 14:45, Marc Santhoff wrote:
> But I speak up for another reason:
> Long ago, at the time of fpc 1.9.x or 2.0.x I did some digging in compilersource code, the lexer and parser part. IIRC there were some hooks for callinga proprocessor in the code at that time. If they are still there, wouldn't itbe a solution for both sides?
> The compiler programmers only have to activate (or complete) a way to call apreprocessor, solving the problem of mangled error messages.
> The preprocessor user could implement whatever is needed on his or her side?
> My 2 cent,Marc

Is that what the PREPROCWRITE define is for?

My 1½d :-)

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list