CHILL - 프로그래밍언어

2008. 9. 19. 02:19Study/Programming


CHILL

Chill은 CCITT High Level Language의 약어로 절차적 프로그래밍 언어에서 사용하기 위해 설계되었으며 전자교환기 등에 들어가는 프로그램의 개발에 주로 쓰인다.. 파스칼과 시뮬라의 영향을 많이 받아 설계된 Modular, Concurrent Pascal, Mesa, Euclid, CLU등 최근 언어들의 개념을 수렴하여 설계되었다. 에이다와 비슷하며 전기통신 소프트웨어들 중 시스템 구현을 위한 고급 프로그래밍 언어의 하나로 ITU-T에서 개발하였다.

전자 교환기의 프로그램 작성 언어로서 ITU-T에서는 대형 시스템의 개발 시간과 비용을 줄이고 시스템의 질적 향상을 위해 생명주기의 각 단계에 따라 적용할 수 있는 언어로, 시스템의 명세와 기술을 위해 SDL을, 구현을 위해서는 CHILL을 권고하였다.

Chill 소스코드의 예

--LUA 5.x by CHILL CODE

-- for X = 99 to 2

-- X Bottles of beer on the wall, X bottles of beer.

-- Take one down and pass it around, [X-1] bottles of beer on the wall.

-- for X = 1

-- X Bottles of beer on the wall, X bottles of beer.

-- Take one down and pass it around, no more bottles of beer on the wall.

-- for X = 0

-- No more bottle of beer on the wall. No more bottles of beer...

-- Go to the store and buy some more...99 bottles of beer.

for i = 99, 2 do

write( i.." Bottles of beer on the wall, "..i.." bottles of beer." )

write( "Take one down and pass it around, "..(i-1).." bottles of beer on the wall." )

end

write( "1 Bottles of beer on the wall, 1 bottles of beer." )

write( "Take one down and pass it around, no more bottles of beer on the wall." )

write( "No more bottle of beer on the wall. No more bottles of beer... " )

write( "Go to the store and buy some more...99 bottles of beer." )