[COTDC] 34#2 - MCStWriter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[COTDC] 34#2 - MCStWriter

laurent laffont
Today:  MCStWriter


Comment Of The Day Contest - One Day One Comment
Rules: 
#1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
#2: If you cannot comment it, deprecate it.
Laurent

Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 34#2 - MCStWriter

laurent laffont
On Tue, Mar 22, 2011 at 6:20 PM, laurent laffont <[hidden email]> wrote:
Today:  MCStWriter

I write Category/Classes/Methods/.... definitions into Monticello source.st file format found in .mcz packages.   

Example:

String streamContents: [:aStream| |writer|
    writer := MCStWriter on: aStream.
    writer writeDefinitions: {True asClassDefinition. False asClassDefinition}.
]


Laurent.
 


Comment Of The Day Contest - One Day One Comment
Rules: 
#1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
#2: If you cannot comment it, deprecate it.
Laurent


Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 34#2 - MCStWriter

laurent laffont
Final one:

= MCStWriter =

I write Category/Classes/Methods/.... definitions into Monticello source.st file format found in .mcz packages.    

See also MCStReader

Example:

String streamContents: [:aStream| |writer|
    writer := MCStWriter on: aStream.
    writer writeDefinitions: {True asClassDefinition. False asClassDefinition}.
]



= MCStReader =

I read Category/Classes/Methodes/.... definitions from Monticello source.st file format.

See also MCStWriter.

Example:

|source|
source := String streamContents: [:aStream| |writer|
    writer := MCStWriter on: aStream.
    writer writeDefinitions: {True asClassDefinition. False asClassDefinition}.
].

(MCStReader on: source readStream) definitions explore.



Laurent 


On Tue, Mar 22, 2011 at 6:40 PM, laurent laffont <[hidden email]> wrote:
On Tue, Mar 22, 2011 at 6:20 PM, laurent laffont <[hidden email]> wrote:
Today:  MCStWriter

I write Category/Classes/Methods/.... definitions into Monticello source.st file format found in .mcz packages.   

Example:

String streamContents: [:aStream| |writer|
    writer := MCStWriter on: aStream.
    writer writeDefinitions: {True asClassDefinition. False asClassDefinition}.
]


Laurent.
 


Comment Of The Day Contest - One Day One Comment
Rules: 
#1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
#2: If you cannot comment it, deprecate it.
Laurent