Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,11 @@
-- parent script "Camera"
property resolution
on new (me)
me.resolution = "1024x768"
return me
end
on snap (me)
put "SNAP!"
end

View file

@ -0,0 +1,13 @@
-- parent script "MobilePhone"
property ringtone
on new (me)
me.ringtone = "Bell"
return me
end
on ring (me, n)
repeat with i = 1 to n
put "RING!!!"
end repeat
end

View file

@ -0,0 +1,15 @@
-- parent script "CameraPhone"
property ancestor
on new (me)
c = script("Camera").new()
mp = script("MobilePhone").new()
-- make the Camera instance a parent of the MobilePhone instance
mp.setProp(#ancestor, c)
-- make the MobilePhone instance a parent of this CameraPhone instance
me.ancestor = mp
return me
end

View file

@ -0,0 +1,15 @@
cp = script("CameraPhone").new()
cp.snap()
-- "SNAP!"
cp.ring(3)
-- "RING!!!"
-- "RING!!!"
-- "RING!!!"
put cp.resolution
-- "1024x768"
put cp.ringtone
-- "Bell"