Category:ArnoldC: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "{{stub}}{{language|ArnoldC}}")
 
No edit summary
Line 1: Line 1:
{{stub}}{{language|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"| <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>BULLSHIT</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 ASS 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 FUCK 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 aways 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.


[[Category:Languages]]
[[Category:2013]]

Revision as of 18:30, 26 October 2018

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.

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 this video. The commands are:

Command Description
@I LIED False
@NO PROBLEMO True
BECAUSE I'M GOING TO SAY PLEASE If
BULLSHIT 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 ASS 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 FUCK 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 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