Category:ArnoldC
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
See Also: |
|
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
|
|
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:
- ArnoldC cyber simulator, a simple online compiler.
- ArnoldC cyber simulator v2, the less buggy version of ArnoldC cyber simulator.
- Try It Online's ArnoldC compiler, which is by far the most functional.
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
- Lauri Hartikka's GitHub source contains instructions and files needed in order to use ArnoldC.
- ArnoldC wiki includes the complete set of instructions for coding in ArnoldC.
Pages in category "ArnoldC"
The following 12 pages are in this category, out of 12 total.