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 MALG

Date:09/17/05
Author:Michael Anthony Sobczak
URL:n/a
Comments:1
Info:n/a
Score: (2.83 in 12 votes)
print "99 Bottles of Beer"
val $x$ = "99"
val $y$ = "0"
label "somewhere"
if *$x$* ">" ?$y$?
   printv $x$
   print "bottles of beer on the wall,"
   printv $x$
   print "bottles of beer."
   dec $x$
   print "Take one down and pass it around,"
   printv $x$
   print "bottle of beer on the wall"
   print " "
   goto "somewhere"
endif
print "No more bottle of beer on the wall, no more bottles of beer."
print "Go to the store and buy some more, 99 bottles of beer on the wall."
exit


MALG is designed to be as fast as assembler. And it is. Simple "Hello World!" program takes about
0.9KB and runs as fast as pure assembler.

Some of options:
Inline assembler with Intel syntax.
Very fast conditionals.
Old good GOTO.
Available versions on BSD and Linux

Download Source | Write Comment

Alternative Versions

Comments

>>  Michael Sobczak said on 08/25/06 17:14:19

Michael Sobczak Now available on www.tnij.org/portfolio in "Kompilator MALG" section.

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: