Re: Java pretty printing in/with DocBook

Subject: Re: Java pretty printing in/with DocBook
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Sun, 22 Feb 1998 15:22:32 -0600
At 03:54 PM 2/22/98 -0500, Paul Prescod wrote:
>W. Eliot Kimber wrote:
>> 
>
>> It would certainly be possible to write DSSSL functions that parse the Java
>> source and do the formatting. My first approach would be to see if there's
>> an emacs mode for Java (there must be) and see if I could use that as the
>> base (as emacs is a lisp application).  Or maybe there's already lisp or
>> scheme code for doing Java parsing out there?

>This is not the approach I would take given infinite resources, but on a
>deadline, it seems simplest. You could also try to integrate a C++
>parser with Jade, but that seems like more work with not much benefit.
>Also, the former Java->JavaML converter would probably be useful in
>other contexts (e.g. on the Web, with XSL).

Pauls point is well taken. In the ideal situation, you would have a Java
grove constructor that you could quickly integrate with Jade, e.g.:

(define construct-java-grove
  (external-procedure "UNREGISTERED::ME//Procedure::construct-java-grove"))

(element (java-example)
  (process-node-list
    (construct-java-grove
      (generated-entity-system-id
        (attribute-string "PROGRAM" (current-node))))))

(query (is-java-node? (current-node))
  (case (node-class (current-node))
    (('function)
      (make paragraph 
        (process-children)))
    (('variable)
      (make sequence
        font: 'italic
        (process-children)))))


I have no idea what it would take to integrate other grove constructors
with Jade, but the ability to do this will be a feature of the GroveMinder
tool from TechnoTeacher and is probably already a feature of Alex
Milowski's DAE tool set.

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Re: Java pretty printing in/with DocBook, (continued)
    • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA22240Sun, 22 Feb 1998 10:28:59 -0500 (EST)
      • Paul Prescod - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id QAA25020Sun, 22 Feb 1998 16:01:45 -0500 (EST)
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id QAA25601Sun, 22 Feb 1998 16:34:24 -0500 (EST)
      • Lassi A. Tuura - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id DAA13860Mon, 23 Feb 1998 03:41:50 -0500 (EST)
    • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id QAA25353Sun, 22 Feb 1998 16:26:17 -0500 (EST) <=
    • Sean Mc Grath - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id GAA15693Mon, 23 Feb 1998 06:34:57 -0500 (EST)
      • Gavin Nicol - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id JAA17936Mon, 23 Feb 1998 09:34:06 -0500 (EST)
        • Christian Leutloff - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA20975Mon, 23 Feb 1998 12:15:24 -0500 (EST)
        • Gavin Nicol - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA21327Mon, 23 Feb 1998 12:32:07 -0500 (EST)