Sign in Join

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

Mailing lists / fpc-pascal / 2011-11

Makeskel error or error behind keyboard?

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Hi list,

Trying to start documenting fpXMLXSDExport:
<some other directory>c:\development\fpc\bin\i386-win32\makeskel --disable-private --emit-class-separator --update --package=fcl --input=C:\development\Fpc\Source\packages\fcl-db\src\export\fpxmlxsdexport.pp --output=fpxmlxsdexport.xml
MakeSkel - FPDoc skeleton XML description file generator Version 2.5.1 [2011/11/14]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,

Error while documenting: Expected "," or ":" at token "=" in file C:\development\Fpc\Source\packages\fcl-db\src\export\fpxmlxsdexport.pp at line 70 column 24
Done.

Snippet of the code in question:
{ TCustomXMLXSDExporter }
TCustomXMLXSDExporter = class(TCustomFileExporter)

  const
    DefaultDatasetName = 'Table1';  <========== this is where it bombs
    // Name used for the exported table/dataset if no other name can be

found.

  private
    FANode: TDOMNode; //Just a placeholder for a node which can be reused

Am I doing something wrong or is makeskel in error?

(FreePascal fixes_2_6, as of today)

One other thing: looking at the FPC reference guide for constants (Chapter 2.1), I see this declaration:
constant declaration - identifier - = - expression - hintdirectives -;

However, hintdirectives doesn't seem to be explained later on (did a search on it in the PDF).
Hintdirectives returns in 11 Using functions and procedures: 11.1 procedure declaration, 11.2 Function declaration

Should the documentation be updated or is it once again a problem between the chair and the computer?

Thanks,
Reinier

Reply by email

Sven Barth
to Reinier Olislagers
Reinier Olislagers wrote 11 lines
Snippet of the code in question: { TCustomXMLXSDExporter } TCustomXMLXSDExporter = class(TCustomFileExporter) const DefaultDatasetName = 'Table1';<========== this is where it bombs // Name used for the exported table/dataset if no other name can be found. private FANode: TDOMNode; //Just a placeholder for a node which can be reused Am I doing something wrong or is makeskel in error?

Perhaps the parser does not yet support the "declarations inside classes" feature?

Regards,
Sven

Reply by email

Unknown author
to Sven Barth
Sven Barth wrote 15 lines
Am 14.11.2011 17:11, schrieb Reinier Olislagers: > Snippet of the code in question: > { TCustomXMLXSDExporter } > TCustomXMLXSDExporter = class(TCustomFileExporter) > const > DefaultDatasetName = 'Table1';<========== this is where it bombs > // Name used for the exported table/dataset if no other name can be > found. > private > FANode: TDOMNode; //Just a placeholder for a node which can be reused > > Am I doing something wrong or is makeskel in error? Perhaps the parser does not yet support the "declarations inside classes" feature?

It does not support this.
I am working on it, but I need to refactor a large part of the parser.

Michael.

Reply by email

Reinier Olislagers
to Unknown author
Show quoted text 15 lines
On Tue, 15 Nov 2011, Sven Barth wrote: > Am 14.11.2011 17:11, schrieb Reinier Olislagers: >> Snippet of the code in question: >> TCustomXMLXSDExporter = class(TCustomFileExporter) >> const >> DefaultDatasetName = 'Table1';<========== this is where it bombs >> Am I doing something wrong or is makeskel in error? > > Perhaps the parser does not yet support the "declarations inside > classes" feature? It does not support this. I am working on it, but I need to refactor a large part of the parser. Michael.

Ok, thanks,
Reinier

Reply by email