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 Lakota

Date:04/20/05
Author:Beirne "Bern" Konarski
URL:n/a
Comments:0
Info:n/a
Score: (3.00 in 12 votes)
Lakota is a shell language used mainly in the TRUEchange 
configuration management package from True Software.  
Code courtesy Beirne "Bern" Konarski.

#! /usr/local/lsh

set-string s s
set-string item one
do i 99 1 -1
    print (i) bottle(s) of beer on the wall,
    print (i) bottle(s) of beer.
    print You take (item) down, pass it around,
    set-string j {- (i) 1}
    if {=? (j) 1}
        set-string s
        set-string item it
    if {=? (i) 1}
        print No more bottles of beer on the wall.(newline)
    else
        print (j) bottle(s) of beer on the wall.(newline)
    cycle

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: