Category:ArnoldC: Difference between revisions

explain how to use ArnoldC's profanity on Rosetta Code
(Created page with "{{stub}}{{language|ArnoldC}}")
 
(explain how to use ArnoldC's profanity on Rosetta Code)
 
(2 intermediate revisions by one other user not shown)
Line 1:
{{stub}}{{language|ArnoldC}}
|name=ArnoldC
|exec=interpreted
|site=http://lhartikk.github.io/ArnoldC/
}}
 
ArnoldC is an [[esoteric programming language]] created with Scala by Lauri Hartikka. The source is available [https://github.com/lhartikk/ArnoldC 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 <code>GET YOUR A** TO MARS</code> and <code>BULLS***</code> 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 [https://www.youtube.com/watch?v=ybJWKZB0Erk&feature=youtu.be&t=6m59s this video].
The commands are:
 
{| class="wikitable"
!Command
!Description
|-
| style="text-align:center"| <code>@I LIED</code>
|False
|-
| style="text-align:center"| <code>@NO PROBLEMO</code>
|True
|-
| style="text-align:center"| <code>BECAUSE I'M GOING TO SAY PLEASE</code>
|If
|-
| style="text-align:center"| <code>BULLS***</code>
|Else
|-
| style="text-align:center"| <code>YOU HAVE NO RESPECT FOR LOGIC</code>
|EndIf
|-
| style="text-align:center"| <code>STICK AROUND</code>
|While
|-
| style="text-align:center"| <code>CHILL</code>
|EndWhile
|-
| style="text-align:center"| <code>GET UP</code>
|<nowiki>+</nowiki>
|-
| style="text-align:center"| <code>GET DOWN</code>
|<nowiki>-</nowiki>
|-
| style="text-align:center"| <code>YOU'RE FIRED</code>
|<nowiki>*</nowiki>
|-
| style="text-align:center"| <code>HE HAD TO SPLIT</code>
|<nowiki>/</nowiki>
|-
| style="text-align:center"| <code>I LET HIM GO</code>
|<nowiki>%</nowiki>
|-
| style="text-align:center"| <code>YOU ARE NOT YOU YOU ARE ME</code>
|<nowiki>==</nowiki>
|-
| style="text-align:center"| <code>LET OFF SOME STEAM BENNET</code>
|<nowiki>></nowiki>
|-
| style="text-align:center"| <code>CONSIDER THAT A DIVORCE</code>
|Or
|-
| style="text-align:center"| <code>KNOCK KNOCK</code>
|And
|-
| style="text-align:center"| <code>LISTEN TO ME VERY CAREFULLY</code>
|DeclareMethod
|-
| style="text-align:center"| <code>GIVE THESE PEOPLE AIR</code>
|NonVoidMethod
|-
| style="text-align:center"| <code>I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE</code>
|MethodArguments
|-
| style="text-align:center"| <code>I'LL BE BACK</code>
|Return
|-
| style="text-align:center"| <code>HASTA LA VISTA, BABY</code>
|EndMethodDeclaration
|-
| style="text-align:center"| <code>DO IT NOW</code>
|CallMethod
|-
| style="text-align:center"| <code>GET YOUR A** TO MARS</code>
|AssignVariableFromMethodCall
|-
| style="text-align:center"| <code>HEY CHRISTMAS TREE</code>
|DeclareInt
|-
| style="text-align:center"| <code>YOU SET US UP</code>
|SetInitialValue
|-
| style="text-align:center"| <code>IT'S SHOWTIME</code>
|BeginMain
|-
| style="text-align:center"| <code>YOU HAVE BEEN TERMINATED</code>
|EndMain
|-
| style="text-align:center"| <code>TALK TO THE HAND</code>
|Print
|-
| style="text-align:center"| <code>I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY</code>
|ReadInteger
|-
| style="text-align:center"| <code>GET TO THE CHOPPER</code>
|AssignVariable
|-
| style="text-align:center"| <code>HERE IS MY INVITATION</code>
|SetValue
|-
| style="text-align:center"| <code>ENOUGH TALK</code>
|EndAssignVariable
|-
| style="text-align:center"| <code>WHAT THE F*CK DID I DO WRONG</code>
|ParseError
|}
==Online interpreters==
 
The few online interpreters available for ArnoldC include:
* [http://mapmeld.com/ArnoldC/ ArnoldC cyber simulator], a simple online compiler.
* [http://mapmeld.com/ArnoldC/?v=2 ArnoldC cyber simulator v2], the less buggy version of ArnoldC cyber simulator.
* [https://tio.run/#arnoldc 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 <code>lowercase</code>, whereas keywords are always <code>UPPERCASE</code>.
 
===New Lines===
Generally, each new keyword command in ArnoldC should be written on a new line. Code written like this will not work:
 
<code>GET TO THE CHOPPER x
HERE IS MY INVITATION y KNOCK KNOCK z
ENOUGH TALK</code>
 
 
==External resources==
 
* [https://github.com/lhartikk/ArnoldC Lauri Hartikka's GitHub source] contains instructions and files needed in order to use ArnoldC.
* [https://github.com/lhartikk/ArnoldC/wiki/ArnoldC ArnoldC wiki] includes the complete set of instructions for coding in ArnoldC.
1,808

edits