Arnold C A Schwarzenegger Based Language

### New Book Reviews!

 Arnold C A Schwarzenegger Based Language
Written by Lucy Black
Sunday, 02 March 2014

New languages come and go, but this one seems likely to "stick around" (Predator). Its entire syntax is based on one line quotes from that well known programmer, movie star and State Governor, Arnold Schwarzenegger.

This may be a complete waste of time but it's funny and in a strange way it is a reminder of what code looks like to a beginner or a non-programmer.

To be clear there is nothing deep here, certainly not Arny's quotes.

To give you the flavor of the language, starting a program is the main method delimited by two appropriate quotes.

IT'S SHOWTIME   [statements] YOU HAVE BEEN TERMINATED

The print command is:

TALK TO THE HAND "happy families are all alike"

You get the idea.

So as is tradition, here is Hello World in ArnoldC

IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED

Things get more complicated when we move to consider expressions and logical operations. My favorite is

YOU ARE NOT YOU YOU ARE ME operand

which is the equality operator.

The if then else construct is also nice:

BECAUSE I'M GOING TO SAY PLEASE value
[statements]
BULLSHIT
[statements]
YOU HAVE NO RESPECT FOR LOGIC

And because this cannot go on forever, you can lookup the rest of ArnoldC at its GitHub page.

Oone last amusing example,  a method is:

LISTEN TO ME VERY CAREFULLY methodName
[Statements]
HASTA LA VISTA, BABY

A complete program serves to illustrate the strangness of the language:

IT'S SHOWTIME
HEY CHRISTMAS TREE isLessThan10
YOU SET US UP @NO PROBLEMO
HEY CHRISTMAS TREE n
YOU SET US UP 0
STICK AROUND isLessThan10
GET TO THE CHOPPER n
HERE IS MY INVITATION n
GET UP 1
ENOUGH TALK
TALK TO THE HAND n
GET TO THE CHOPPER isLessThan10
HERE IS MY INVITATION 10
LET OFF SOME STEAM BENNET n
ENOUGH TALK
CHILL
YOU HAVE BEEN TERMINATED

Just in case your ArnoldC isn't quite up to speed, the above prints the numbers 1 to 10.

It is also worth mentioning that its creator, Lauri Hartikka, has implemented the language and you can actually run the program given above and others like it.

Lauri justifies the time spent with:

"Although the one-liners of Arnold Schwarzenegger are fairly well known the true semantics of the uttering is yet to be understood. This project tries to discover new meanings from the Arnold movies with the means of computer science."

And I don't think we are talking semicolons here....

Once you have thought of ArnoldC it is obvious that there is a generic group of languages based on the principle. For example, CEastwood would have really good facilities for random number generation:

you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?

It puts a another spin on literate programming.

ArnoldC on GitHub

#### Related Articles

The Sound Of Coding

Vanilla JS Used On More Sites Than jQuery

Demo Of Wolfram Language

Which Languages Influenced Which?