[Newcompiler] Re: Saphir scripting language for squeak

stephane ducasse stephane.ducasse at free.fr
Sun Oct 29 08:24:08 UTC 2006


I do not understand what you are trying to say.

>>>> Then what is the difference between run [...], declare [...] and  
>>>> foo
>>>> [...]
>>>
>>> There is no diffrence and run will be automaticly called
>>>
>> I think that there is a definition since declare and run do not  
>> compile
>> a method
>> at leats from ther user point of view

What does declare?

What does foo [ ]

what does run [ ]

There is a difference between implementation and semantics.



> Yes there is a grammar rule. Is that you mean?
>
> run and declare are compile method in a subclass of  
> ScriptInterpreter. You can try to run the attach
> file and you will see a new class called Exemple1
>
> 	Math
> #!/bin/sh
> run [
> 	Transcript show: 'Hello!'
> ]



More information about the Newcompiler mailing list