ArnoldC

{{language |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.

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

  • [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.

Tasks