forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@apache.org>
Subject RE: [Fwd: invitation to check out dbdoc/ashkelon]
Date Wed, 31 Jul 2002 07:26:06 GMT

On Wed, 31 Jul 2002, Marc Portier wrote:

> > -----Original Message-----
> > From: Steven Noels [mailto:stevenn@outerthought.org]
> > Sent: dinsdag 30 juli 2002 14:47
> > To: forrest-dev@xml.apache.org
> > Subject: Re: [Fwd: invitation to check out dbdoc/ashkelon]
> >
> >
> > Marc Portier wrote:
> >
> >  > so a source-code-highlighting transformer would be able to parse the
> >  > contents and put out the <source> with nested tags to indicate the
> >  > language-independant, but rather higlight-directed portions that any
> >  > language knows about: literals, keywords, comment, names,...
> >  >
>
> > * http://chaperon.sourceforge.net/overview.html if we can get hold from
> > a Java syntax definition file
>
> haven't found one yet, there seems to be a conversion possible from yacc
> style syntax def files to the xml version it needs.
> don't know how that relates to the javacc style syntax def files, didn't
> find a repository of yacc syntax files

There are 3 examples in the HEAD CVS of cocoon(in the scratchpad).

localhost:8080/cocoon/samples/chaperon/

The Java example includes a complete Java grammar. The output can be used
to generate JavaDoc pages, or syntax highlighted sourcecode.

It's a litle slow for the first time, because the parser creates a parser
table intern. After that, the parser is fast as a normal xml parser.

Stephan Michels.



Mime
View raw message