Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-08

fcl-passrc: Process library source?

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matthias Klumpp

Hi!
At time I'm playing around with fcl-passrc to automate some actions I have to perform with the source code.
Unfortunately, FCL-PASSRC does not process the source of a library: Expected "unit" at token "library"
(In ParseSource() call)
How do I make FCL-PASSRC process the lib source code too? Thanks!
Matthias

Graeme Geldenhuys
to Matthias Klumpp
Matthias Klumpp wrote
 (In ParseSource() call) How do I make FCL-PASSRC process the lib source code too?

It's not implemented yet - just like fcl-passrc can't parse Program units either. Based on what I found while looking what to implement for Program unit parsing, it doesn't seem that difficult. Time permitting, I'll try and implement both during the week.

If you or somebody else can do this sooner, please let me know, so we don't duplicate efforts. My priority at this point is to get fpdoc linking bugs fixed, before I move to the fcl-passrc.

Regards,   - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/
dmitry boyarintsev
to Graeme Geldenhuys
Graeme Geldenhuys wrote
It's not implemented yet - just like fcl-passrc can't parse Program units either.  Based on what I found while looking what to implement for Program unit parsing, it doesn't seem that difficult. Time permitting, I'll try and implement both during the week.

How's your progress Graeme? I can do this in the weekend (28th-29th).

thanks,
Dmitry

dmitry boyarintsev
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Thanks Dmitry, you can go ahead. I'm still busy with fpdoc and DocView fixes.

Passrc should be able to parse "program" units now. At least it shouldn't be failing with error.
Program modules doesn't have interface part filled, implementation part only.

thanks,
dmitry