[fpc-pascal] Proper preprocessor?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Wed Jun 20 16:16:08 CEST 2018


On 20/06/18 13:45, Ryan Joseph wrote:
>> On Jun 20, 2018, at 8:09 PM, Michael Van Canneyt <michael at freepascal.org> wrote:> > Nothing stops people from preprocessing their code if they need really> advanced preprocessing: The toolchain can handle it already.> > But there is no need to integrate it in the compiler and thus needlessly> complicating it even more. The consequences of such a step are far-reaching.> > And till now, no-one has presented the really pressing use cases that would warrant such a step.

> How can you integrate a preprocessor without misaligning error messages and debugging information?

I forget the detail but some language implementations have pragmata 
which tell subsequent processing steps that at this point the source 
should be considered to have come from such-and-such a line number in 
such-and-such a file.

-- 
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