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 Fudgit

Date:05/17/05
Author:Ralf Schwedler
URL:n/a
Comments:0
Info:n/a
Score: (3.00 in 10 votes)
# The fudgit language and interpreter was created by Martin-D. Lacasse.
# It is used to preprocess data for plotting, typically with gnuplot.
# The interpreter is found in common linux distros, e.g. Debian Sarge
# (c) Ralf Schwedler 2005

set format "%2.0f"


cmode

for(x=99;x>=1;x=x-1) {
	if (x == 1) {
           1, "bottle of beer on the wall"
          } else {
	   x, "bottles of beer on the wall"
	  }
	if (x == 1) {
           x, "bottle of beer"
          } else {
	   x, "bottles of beer"
	  }
	"Take one down and pass it around,"
	if ((x-1) == 0) {
	  "No bottle of beer on the wall"
	} else {
	if ((x-1) == 1) {
           x-1, "bottle of beer on the wall"
          } else {
	   x-1, "bottles of beer on the wall"
	  }
        }
	""
}

fmode

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: