Re: [lazarus] fpdoc and xml-struct

2008-01-11 Thread willem

Michael Van Canneyt wrote:

On Fri, 11 Jan 2008, willem wrote:

  

Michael Van Canneyt wrote:


On Fri, 11 Jan 2008, willem wrote:

  
  

I try to generate xml with fpdoc, but I get an error message

FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format "XML-STRUCT" specified
Writing 9 pages...
Done.

The pages are html in stead of xml.



Obviously. Read the error message.
What is the command-line you are using ?

Michael.
  
  
makeskel --package=regexdna --input=regexdna.pas --output=regexdna.xml


fpdoc --format=xml-struct --package=regexdna --input=regexdna.xml
  


1. Where do you get this xml-struct from ?? 
   I think you want --format=xml
  
From : 
http://www.freepascal.org/docs-html/fpdoc/fpdocsu3.html#x15-140003.2.3

Yes i want to format --format=xml  :-)

I am using the Fpdoc reference manual , written by Michael van Canneyt 
on May 17 2007  ;-)

2. Input is the pas file, not the xml file:
   fpdoc --format=xml --package=regexdna --input=regexdna.pas 
--descr=regexdna.xml

Michael.
I followed your advice :
  

[EMAIL PROTECTED]:~/rexegu$ ./regexdna.sh
MakeSkel - FPDoc skeleton XML description file generator
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Done.
FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Done.
But there must be a bug in the section of the xmlwriter

of Pasdoc , Xmlwriter does not write anything .

Html writer does write ! , So I get only Html code in my Package directory.

Thank you for your fast response.

regards  wim

_
  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-11 Thread Michael Van Canneyt


On Fri, 11 Jan 2008, willem wrote:

> Michael Van Canneyt wrote:
> > On Fri, 11 Jan 2008, willem wrote:
> >
> >   
> > > I try to generate xml with fpdoc, but I get an error message
> > >
> > > FPDoc - Free Pascal Documentation Tool
> > > Version 2.2.0 [2007/08/30]
> > > (c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]
> > >
> > > Invalid format "XML-STRUCT" specified
> > > Writing 9 pages...
> > > Done.
> > >
> > > The pages are html in stead of xml.
> > > 
> >
> > Obviously. Read the error message.
> > What is the command-line you are using ?
> >
> > Michael.
> >   
> 
> > makeskel --package=regexdna --input=regexdna.pas --output=regexdna.xml
> >
> > fpdoc --format=xml-struct --package=regexdna --input=regexdna.xml

1. Where do you get this xml-struct from ?? 
   I think you want --format=xml

2. Input is the pas file, not the xml file:
   fpdoc --format=xml --package=regexdna --input=regexdna.pas 
--descr=regexdna.xml

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-11 Thread willem

Michael Van Canneyt wrote:

On Fri, 11 Jan 2008, willem wrote:

  

I try to generate xml with fpdoc, but I get an error message

FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format "XML-STRUCT" specified
Writing 9 pages...
Done.

The pages are html in stead of xml.



Obviously. Read the error message.
What is the command-line you are using ?

Michael.
  



makeskel --package=regexdna --input=regexdna.pas --output=regexdna.xml

fpdoc --format=xml-struct --package=regexdna --input=regexdna.xml


  

The output is now :
MakeSkel - FPDoc skeleton XML description file generator
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Done.
FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format "XML-STRUCT" specified
regexdna.xml(1,1): Expected "unit" at token "<"
Writing 1 pages...
Done.

A code snippet is here :
{Gentoo : Intel® Pentium® 4
Computer Language Benchmarks Game

 The Computer Language Benchmarks Game
 http://shootout.alioth.debian.org

 regex-dna benchmark using libpcre

 contributed by Vitaly Trifonov
*}
unit regexdna;

{$Mode objfpc}
{$INLINE ON}

{$IFNDEF DEBUG}
{$CHECKPOINTER OFF}
{$RANGECHECKS OFF}
{$OVERFLOWCHECKS OFF}
{$IOCHECKS OFF}
{$ENDIF}
interface

uses sysutils;

(**pcre wrap   
*)


const
 libpcre = 'pcre';
 PCRE_CASELESS = $0001;

type
 pcre = Pointer;
 pcre_extra = Pointer;
 PPChar = ^PChar;

implementation

function pcre_compile( const pattern: PChar;
  options: Integer;
  const errptr: PPChar;
  erroffset: PInteger;
  const tableptr: PChar ): pcre; cdecl; external 
libpcre;


function pcre_exec( const code: pcre;
   const extra: pcre_extra;
   const subject: PChar;
   length, startoffset, options: Integer;
   ovector: PInteger;
   ovecsize: Integer ): Integer; cdecl; external libpcre;

function pcre_study( const external_re: pcre;
options: integer;
errorptr: PPChar ): pcre_extra; cdecl; external 
libpcre;


(***)

const
 patt: array[0..10] of PChar = 
('B','D','H','K','M','N','R','S','V','W','Y');

 repl: array[0..10] of PChar = ('(c|g|t)', '(a|g|t)', '(a|c|t)', '(g|t)',
 '(a|c)','(a|c|g|t)', '(a|g)', '(c|g)', '(a|c|g)', '(a|t)', '(c|t)');






















Regards Wim



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-11 Thread Michael Van Canneyt


On Fri, 11 Jan 2008, willem wrote:

> I try to generate xml with fpdoc, but I get an error message
> 
> FPDoc - Free Pascal Documentation Tool
> Version 2.2.0 [2007/08/30]
> (c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]
> 
> Invalid format "XML-STRUCT" specified
> Writing 9 pages...
> Done.
> 
> The pages are html in stead of xml.

Obviously. Read the error message.
What is the command-line you are using ?

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-11 Thread willem

Vincent Snijders wrote:

willem schreef:

I try to generate xml with fpdoc, but I get an error message



xml isn input for fpdoc. To generate fpdoc xml use makeskel.

Vincent


Ok, I have done that.

output is now :

MakeSkel - FPDoc skeleton XML description file generator
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Done.
FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format "XML-STRUCT" specified
regexdna.xml(1,1): Expected "unit" at token "<"
Writing 1 pages...
Done.

There is a unit in the program: but not in the xml file :
{Gentoo : Intel® Pentium® 4
Computer Language Benchmarks Game
  
Frequently Asked Questions


regex-dna benchmark | Pascal Free Pascal | regex-dna full data
regex-dna Pascal Free Pascal program
N  CPU Time secs Memory Use KB GZip Bytes
500,0004.3711,4361193


 The Computer Language Benchmarks Game
 http://shootout.alioth.debian.org

 regex-dna benchmark using libpcre

 contributed by Vitaly Trifonov
*}
unit regexdna;

{$Mode objfpc}
{$INLINE ON}

{$IFNDEF DEBUG}
{$CHECKPOINTER OFF}
{$RANGECHECKS OFF}
{$OVERFLOWCHECKS OFF}
{$IOCHECKS OFF}
{$ENDIF}
interface

uses sysutils;

(**pcre wrap   
*)


const
 libpcre = 'pcre';
 PCRE_CASELESS = $0001;

type
 pcre = Pointer;
 pcre_extra = Pointer;
 PPChar = ^PChar;

implementation

function pcre_compile( const pattern: PChar;
  options: Integer;
  const errptr: PPChar;
  erroffset: PInteger;
  const tableptr: PChar ): pcre; cdecl; external 
libpcre;

Regards Wim

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-10 Thread Vincent Snijders

willem schreef:

I try to generate xml with fpdoc, but I get an error message



xml isn input for fpdoc. To generate fpdoc xml use makeskel.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] fpdoc and xml-struct

2008-01-10 Thread willem

I try to generate xml with fpdoc, but I get an error message

FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format "XML-STRUCT" specified
Writing 9 pages...
Done.

The pages are html in stead of xml.

regards Wim

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives