How to use this kind of method ?

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

How to use this kind of method ?

khenyh
Hi,

I am new to this list.

I have problem with a piece of code I don't understand. What I am doing is using the latest version of VisualWorks Smalltalk for a program written with the 5.4 version.

I did not write the program. I have managed to to file in all the code needed to run the application. Of course, I must do some corrections. But there is one I can not do because it is the first time I see this kind of code.

The usual way to write a method is (and the only one I know) :

myMethod

| var1 var2 |

var1 := ....



The code I don't understand is like :
blockEntities =

    | var1 var2 |

    #INSERT
    groupeCode
    string
    groupeCode


Where groupeCode and string are lookalike methods.

This code is used to read dxf files. It seems to be a grammar, but it is not understood by the new version of smalltalk.
Do I have to load a parcel ?

Nicolas Krieger

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to use this kind of method ?

Holger Kleinsorgen-4
Hello,

this looks like a parser based on the ParserCompiler provided by the
parcel "AT Parser Compiler". For more information: there's a section
"Advanced Parser-Compiler" in the basic library documentation
(BasicLibraries.pdf).

>
> I am new to this list.
>
>
> The code I don't understand is like :
> blockEntities =
>
>      | var1 var2 |
>
>      #INSERT
>      groupeCode
>      string
>      groupeCode
>
>
> Where groupeCode and string are lookalike methods.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc