Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Fjoelnir

Date:04/20/05
Author:Dagur Páll Ammendrup
URL:n/a
Comments:0
Info:n/a
Score: (3.30 in 23 votes)
Hi, here's 99 bottles in the Fjölnir (Fjoelnir) programming language. 
Fjölnir is an Icelandi programming language from the early/mid 80's and 
is a list-processing language similar to LISP and LOGO. 

;;bottles.fjo
;;Dagur Páll Ammendrup <dagurp at heimsnet dot is>
;;Written on January 10th 2004

"bottles" < main
{
    main ->
        stef(;)
        staðvær i,b
        stofn
            fyrir( i := 100; i > 1; i := i-1) lykkja
                bottles(;i-1),
                skrifastreng(;" on the wall, "),
                bottles(;i-1),
                skrifastreng(;",\ntake one down, pass it around, \n"),
                bottles(;i-2),
                skrifastreng(;" on the wall.\n"),
            lykkjulok,
        stofnlok
}
*
{
    bottles ->
        stef(;n)
        stofn
            val n úr
            kostur 0 þá
                skrifastreng(;"no more bottles"),
            kostur 1 þá
                skrifastreng(;"1 bottle of beer"),
            annars
                skrifa(;n),
                skrifastreng(;" bottles of beer"),
            vallok
        stofnlok
}
*
"GRUNNUR"
;

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: