Интересен език за програмиране - ZOMBIE
Тук намерих някакъв абсолютно побъркан език за програмиране ![]()
Има три вида структурни единици (типове данни): undead, demons и djinn.
Всяка се ‘призовава’ за да изпълни конкретна задача, всъщност май целия език се гради на описания на задачите…
Ето пример за програмата за 99-те бутилки:
minusOne is a zombie
summon
remember -1
bind
lotsofbeer is a zombie
summon
remember 99
task Beersong
shamble
say moan lotsofbeer
say bottles of beer on the wall,
say moan lotsofbeer
say bottles of beer
say Take one down, pass it around
remember moan minusOne moan lotsofbeer
say moan lotsofbeer
say bottles of beer on the wall
until remembering 1
say 1 bottle of beer on the wall, 1 bottle of beer, take it down, pass it around no more bottles
say of beer on the wall.
animate
animate