Sign in Join

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

Mailing lists / fpc-pascal / 2006-04

[OT] CTags Tool for Object Pascal Language

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

The Exuberant CTags program supports over 30 programming languages including Standard Pascal. For C and C++ it does a fantastic job of indexing all routines and variables even when embedded in complex and unusual expressions. The support for Pascal, on the other hand, is limited to indexing function and procedure names. There is no support for variables. Functions and procedures are not supported if dot notation is used to make them object methods or to scope them to a particular unit. This severely limits the usefulness of Exuberant CTags index files for object oriented code.

Anyone know of a CTags program with more complete support for Pascal?

Reply by email

Marco van de Voort
to Unknown author
Show quoted text 11 lines
The Exuberant CTags program supports over 30 programming languages including Standard Pascal. For C and C++ it does a fantastic job of indexing all routines and variables even when embedded in complex and unusual expressions. The support for Pascal, on the other hand, is limited to indexing function and procedure names. There is no support for variables. Functions and procedures are not supported if dot notation is used to make them object methods or to scope them to a particular unit. This severely limits the usefulness of Exuberant CTags index files for object oriented code. Anyone know of a CTags program with more complete support for Pascal?

It sounds like a crossreferencer. Search for Coco/R, a parser generator that can gen Delphi code. IIRC the cross referencer is one of its std demoes for each language.

Reply by email

memsom
to Marco van de Voort
Show quoted text 5 lines
It sounds like a crossreferencer. Search for Coco/R, a parser generator that can gen Delphi code. IIRC the cross referencer is one of its std demoes for each language.

Essentially PasDoc more or less does what he wants, except the files it produces are HTML. With some work it might be able to be used.

Reply by email

Michael Van Canneyt
to memsom
memsom wrote 8 lines
> It sounds like a crossreferencer. Search for Coco/R, a parser generator > that > can gen Delphi code. IIRC the cross referencer is one of its std demoes > for > each language. Essentially PasDoc more or less does what he wants, except the files it produces are HTML. With some work it might be able to be used.

The FCL contains all components you need. fpDoc uses it, and it's distributed with FPC. The fpRPC components also use it to generate an interface definition, if I'm correct.

Michael.

Reply by email

Graeme Geldenhuys
to memsom: Essentially PasDoc more or less does what he wants, except the files it produces are…
memsom wrote 8 lines
> It sounds like a crossreferencer. Search for Coco/R, a parser generator > that > can gen Delphi code. IIRC the cross referencer is one of its std demoes > for > each language. Essentially PasDoc more or less does what he wants, except the files it produces are HTML. With some work it might be able to be used.

PasDoc does sound like a solution. BTW: PasDoc can output to a few different formats (html, rtf, Latex, etc), so it should be possible to write a new output format without major effort.

Regards,
- Graeme -

There's no place like 127.0.0.1

Reply by email