Category:ArnoldC

From Rosetta Code
Revision as of 10:37, 2 July 2020 by Chunes (talk | contribs) (explain how to use ArnoldC's profanity on Rosetta Code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Language
ArnoldC
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Interpreted
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using ArnoldC.

ArnoldC is an esoteric programming language created with Scala by Lauri Hartikka. The source is available here, along with tutorials and example programs.

In an effort to keep Rosetta Code accessible to as many schools as possible, commands with profanity have been censored using asterisks. Specifically, please use GET YOUR A** TO MARS and BULLS*** when making submissions.

This article is being improved. Help us out by adding more information.


Language overview

ArnoldC runs on famous quotations by Arnold Schwarzenegger. Most of the quotes can be found in this video. The commands are:

Command Description
@I LIED False
@NO PROBLEMO True
BECAUSE I'M GOING TO SAY PLEASE If
BULLS*** Else
YOU HAVE NO RESPECT FOR LOGIC EndIf
STICK AROUND While
CHILL EndWhile
GET UP +
GET DOWN -
YOU'RE FIRED *
HE HAD TO SPLIT /
I LET HIM GO %
YOU ARE NOT YOU YOU ARE ME ==
LET OFF SOME STEAM BENNET >
CONSIDER THAT A DIVORCE Or
KNOCK KNOCK And
LISTEN TO ME VERY CAREFULLY DeclareMethod
GIVE THESE PEOPLE AIR NonVoidMethod
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE MethodArguments
I'LL BE BACK Return
HASTA LA VISTA, BABY EndMethodDeclaration
DO IT NOW CallMethod
GET YOUR A** TO MARS AssignVariableFromMethodCall
HEY CHRISTMAS TREE DeclareInt
YOU SET US UP SetInitialValue
IT'S SHOWTIME BeginMain
YOU HAVE BEEN TERMINATED EndMain
TALK TO THE HAND Print
I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY ReadInteger
GET TO THE CHOPPER AssignVariable
HERE IS MY INVITATION SetValue
ENOUGH TALK EndAssignVariable
WHAT THE F*CK DID I DO WRONG ParseError

Online interpreters

The few online interpreters available for ArnoldC include:

Conventions

The following summarises the conventions for coding in ArnoldC.

Variables and Keywords

Variables and keywords are differentiated by capitalisation. Variables should always be lowercase, whereas keywords are always UPPERCASE.

New Lines

Generally, each new keyword command in ArnoldC should be written on a new line. Code written like this will not work:

GET TO THE CHOPPER x HERE IS MY INVITATION y KNOCK KNOCK z ENOUGH TALK


External resources