[Cuis-dev] Erudite documentation: SmalltalkEruditeParser parse: '...?'

H. Hirzel hannes.hirzel at gmail.com
Mon Mar 17 05:05:08 PDT 2025


Hi Mariano

The class MorphicEruditeDocRenderer gives as example2.

|| erudite | erudite := SmalltalkEruditeParser parse: Object comment. 
(MorphicEruditeDocRenderer on: erudite) render edit. |

This is rendered in a window with the comment of Object with clickable 
content giving access to browsers.

How would an example code look like for a book with different sections 
each one showing the comment of a particular class.

A documentation by showing the class comment of a selection of classes 
in a well presented order seems to be useful and easy to use for 
documentation.

I am looking for something like

|| erudite | ws := WriteStream on: String new. #{Object 
ConstructDictionaryEntrySelection ProduceDictionary GenerateLatex} 
"ordered list of classes" do: [:class ||| ws nextPutAll: '..the code to define a section', class name; cr ws 
nextPutAll: class name; cr] erudite := SmalltalkEruditeParser parse: ws 
contents. (MorphicEruditeDocRenderer on: erudite) render edit.|

|] |

Or more general: What kind of code does the SmalltalkEruditeParser  expect?

Kind regards

Hannes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250317/139e9769/attachment.htm>


More information about the Cuis-dev mailing list