Hi,
For exporting Moose on the web, we must serialize the Moose's entities in
JSON or XML.
Is a such method already implemented on a FAMIX entity ?
Thanks,
Vincent Blondeau
Hi,
is there any way to request a string from the user with Glamour.
Something equivalent to:
UIManager default request: 'foo'
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill
Hi,
I would more do it the other way around (from large to small):
niceObject := ParseResult new.
result do: [:eachResult | niceObject add: eachResult ]
Cheers,
Doru
On Tue, May 28, 2013 at 2:23 PM, Juan Ignacio Vaccarezza <
juanvaccarezza(a)gmail.com> wrote:
> Doru,
> thanks for the answer.
>
> I'm doing it in the way you suggest.
>
> What I ment by know how to add to the result is the following: (Modifing a
> bit the example you gave me)
>
> a := 'AAA' asParser flatten ==> [:token | ResultSelfAdder new objectToAdd:
> token; selector:#addA ].
> b := 'BBB' asParser flatten ==> [:token | ResultSelfAdder new objectToAdd:
> token; selector:#addB ].
> c := 'CCC' asParser flatten ==> [:token | ResultSelfAdder new objectToAdd:
> token; selector:#addC ].
>
> meaningful := a / b / c.
> other := (meaningful / #newline asParser) negate star flatten.
> log := (meaningful / other) delimitedBy: #newline asParser.
>
> result := log end parse: 'AAA
> AAA
> BBB
> CCC
> AAA
> other text
> CCC
> BBB
> other text'.
>
> niceObject := ParseResult new.
> result do: [:eachResult | eachResult addYourselfTo: niceObject]
>
>
> ResutlSelfAdder>>addYourselfTo: aParseResult
> aParseResult perform: self selector with: self objectToAdd.
>
> I hope is clear now, Im pretty new at asking on mailists, and sometimes I
> forget to add crucial information
> Thanks again for your time!
>
> Juan
>
>
> On Tue, May 28, 2013 at 2:08 AM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>
>> Hi,
>>
>> I am not sure what you mean when you say an object that knows how to add
>> to the result. Basically, you would need to build for each production the
>> object and collect the meaningful ones in the outer scope.
>>
>> Here is something that would work for your example:
>>
>> a := 'AAA' asParser ==> [:token | #a].
>> b := 'BBB' asParser ==> [:token | #b].
>> c := 'CCC' asParser ==> [:token | #c].
>> meaningful := a / b / c.
>> other := (meaningful / #newline asParser) negate star flatten.
>> log := (meaningful / other) delimitedBy: #newline asParser.
>>
>> result := log end parse: 'AAA
>> AAA
>> BBB
>> CCC
>> AAA
>> other text
>> CCC
>> BBB
>> other text'.
>> result select: #isSymbol
>>
>> I am CC-ing the moose mailing list because these questions tend to find
>> better answers there.
>>
>> Cheers,
>> Doru
>>
>>
>> On May 27, 2013, at 11:07 PM, Juan Ignacio Vaccarezza <
>> juanvaccarezza(a)gmail.com> wrote:
>>
>> > Hi all,
>> >
>> > First of all thanks for the amazing work and aswers to all. Having said
>> that, the problem:
>> >
>> > I need to parse a log, a model that represents the lo is the following:
>> >
>> > '
>> > AAA
>> > AAA
>> > BBB
>> > Line I don't care which can contain anything that is not AAA BBB or CCC
>> > CCC
>> > AAA
>> > CCC
>> > BBB
>> > Line I don't care which can contain anything that is not AAA BBB or CCC
>> > '
>> >
>> > I manage to write the grammar which parses this, but then I would lilke
>> to have all the log info digested on a result object which behaves
>> something like this:
>> >
>> > resutlObject as size --> 3
>> > resultObject bs size --> 2
>> > restulIbject cs size -->2
>> >
>> > The option that im using now is that individual parsers (meaning the
>> parser for AAA,BBB,CCC,etc) actually retunrs an object that knows how to
>> add themselves to the result and then, I iterate over the parser's array
>> result asking to each object to add itself to the result.
>> >
>> > Is there a better solution?
>> >
>> > Thanks to all,
>> > Juan.
>>
>> --
>> www.tudorgirba.com
>>
>> "It's not how it is, it is how we see it."
>>
>>
>>
>
--
www.tudorgirba.com
"Every thing has its own flow"
Hi,
I'm looking for something that looks like a GLMAccordionArrangement,
but which allows maximum one selected element at any point. Current, I
can select one element in each accordion subpane.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill
Hi,
I was playing with the MooseFinder to visualize the source of some files
and I found the rendering of the text rather slow. Longer is the file
slower is the rendering. Is there a way to make the visualization of the
source code faster into MooseFinder?
Cheers,
Fabrizio
Hi
There is a new layout for packing rectangle nodes.
Gofer new
smalltalkhubUser: '' project: 'RoassalAlgorithm';
package:
'Roassal-New';
load
---------------------------------------------------------------------------------------------------
"Source code: ROMondrianExample>>miniMapOn:"
"Preambule. It includes
the initialization. "
| view rawView |
rawView := ROView new.
view :=
ROMondrianViewBuilder view: rawView.
"-------------"
"-------------"
view shape rectangle
width: [ :cls | cls numberOfVariables * 5 ];
height: #numberOfMethods;
color: (Color r: 0 g: 1 b: 1 ).
view nodes:
Collection withAllSubclasses.
"1 to: view nodes size by: 2 do: [ :ea
||i e| e := view nodes at: ea.
i := e width.
e width: e height.
e
height: i.
e extent: e width @ e height ] ."
view layout:((
RORectanglePacking new)ratioWidth: 2 height: 1; padding:
3).
"-------------"
"-------------"
"Below is the initiation of the
menu and opening the visualization"
ROEaselMorphic new populateMenuOn:
view.
view
open.
------------------------------------------------------------------------------------------------------
Try it and give me feedback, please.
Regards
Mathieu
Hello,
I'm doing an internship in the INRIA team RMod for 3 month. During this
internship, I would like to export Moose on the web.
I know there is a REST library on Seaside and we would to use it.
Have you got some pointers or links on resources that I can use to doing
this ?
Thanks
Vincent BLONDEAU
Student in Software Engineering and Statistics
Polytech Lille
Dear All,
Juraj has been working on a new builder for Roassal. Imagine something like Mondrian for to define Matrixes. The idea is to port DSM on Roassal
Juraj did an excellent job at defining the infrastructure to easily defines matrixes and DSM.
Here is the incantation to load the builder:
Gofer new
smalltalkhubUser: 'JurajKubelka' project: 'RoassalProposals';
package: 'RoassalGraphBuilders';
load.
(Smalltalk globals at: #RODependencyMatrixBuilderTest) browse.
Here is a list of small doits with their respective screenshots:
-=-=-=-=-=-=-=-=-=-=-=-=
| view builder |
view := ROView new.
builder := RODependencyMatrixBuilder new.
builder model: (Array with: true with: false).
builder dependencyBoolean: #xor:.
builder gapSize: 0.
builder on: view.
view open
-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=-=
| view builder objects |
objects := ROShape withAllSubclasses.
view := ROView new.
view @ RODraggable.
builder := RODependencyMatrixBuilder new.
builder model: objects.
builder dependency: #superclass.
builder gapSize: 0.
builder on: view.
view open
-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=-=
| view builder |
view := ROView new.
builder := RODependencyMatrixBuilder new.
builder model: (1 to: 5).
builder dependencyModel: [ :model :r :c | r + c ].
builder dependencyShape: ROLabel green.
builder on: view.
view open
-=-=-=-=-=-=-=-=-=-=-=-=
In a Roassal Easel opened on a class group:
-=-=-=-=-=-=-=-=-=-=-=-=
| builder |
builder := RODependencyMatrixBuilder new.
builder model: classGroup.
builder rowShape text: [ :element | element model name asString ].
builder columnShape text: ''.
builder dependencyModel: [ :model :r :c | r queryAllOutgoingInvocations atClassScope includes: c ].
builder dependencyShape: (ROBox new color: [ :el | el model ifTrue: [ Color red ] ifFalse: [ Color white ] ]; extent: 20 @ 20).
builder gapSize: 0.
builder on: view raw.
builder sort: [ :model | model queryAllOutgoingInvocations atClassScope size ].
-=-=-=-=-=-=-=-=-=-=-=-=
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.