[Newcompiler] Re: Saphir scripting language for squeak

Mathieu Suen mathieusuen at yahoo.fr
Sun Oct 29 07:44:25 UTC 2006


Stéphane Ducasse a écrit :
>>> so are run [] and declare [] script methods?
>>
>> yes
>>
>>>
>>> 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
> 
> stef
> 
> 
> 

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
-------------- next part --------------
#!/bin/sh
run [
	Transcript show: 'Hello!'
]


More information about the Newcompiler mailing list