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:3
Info:n/a
Score: (3.02 in 40 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

>>  Vítor De Araújo said on 10/07/09 17:56:33

Vítor De Araújo Nice! Is there a free Fjölnir implementation somewhere for download?

>>  Halldór said on 01/07/10 10:59:05

Halldór The compiler can be found here: http://notendur.hi.is/~snorri/087133-03/fjolnir.zip and the manual is at http://notendur.hi.is/~snorri/087133-03/fjolnir.pdf it's only in Icelandic but maybe you'll have some luck with Google translate.

>>  Leah Culver said on 05/31/10 10:11:03

Leah Culver *
"GRUNNUR"
;

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: