Hello world/Newbie: Difference between revisions

Content deleted Content added
Simple9371 (talk | contribs)
m →‎{{header|JavaScript}}: added 'code' tags
Simple9371 (talk | contribs)
→‎{{header|PicoLisp}}: Added Plain English
Line 1,587: Line 1,587:
<pre>$ ./pil +
<pre>$ ./pil +
: (prinl "Goodbye, World!")</pre>
: (prinl "Goodbye, World!")</pre>

=={{header|Plain English}}==
==== Download ====
Before anything else, you need to be using Windows XP or above (32-bit or 64-bit).

First of all, download the complete IDE (and compiler in one) ZIP file here: http://www.osmosian.com/cal-4700.zip. Then extract the ZIP file to wherever you want. The extracted folder will now be called "IDE folder" throughout this tutorial.
==== Coding Environment ====
Before running the IDE, it is recommended to create a new folder to store your Plain English codes. This will now be called "Working folder" throughout this tutorial.

Now go to the IDE folder, and run <code>cal-4700.exe</code>. The IDE is full-screen, with the alphabetical menus at the top and the tabs at the bottom. Initially, you should also see all your drive letters like <code>C:\</code>, <code>D:\</code>, etc. From that, you may navigate to the files/folders like you do in File Explorer: double-click to open, using UP and DOWN arrow keys, etc. However, there are some differences from the File Explorer:
* The backspace key means deletion, instead of going back to parent directory. To go back to parent directory (and to close the opened file), click on the tab at the bottom.
* There ie no scroll bar. To effectively scroll through the files & folders, just long-press your right mouse button, and drag up or down.
==== (Plain) Console HelloWorld ====
Now go to your Working folder. Click the letter 'N' at the top menu, then click on 'New Directory...' and name a new directory (say, "HelloWorld1") inside the Working folder. Open the new folder and press <b>Ctrl+V</b>. Regardless of what's in your clipboard, the IDE will place "the noodle" file in the folder. The "the noodle" file is another source code that acts like a "header file" in C, but is <i>required</i> for the codes to run.
Click the letter 'N' again, but this time, click on 'New Text File...' and name a new text file <b>without any</b> file extensions! Open the new text file and copy the following code:
<lang plainenglish>To run: \This is a comment
Start up.
Write "Hello World!" to the console.
wAIt fOr tHe eScApE kEY. \Plain English is case-insensitive
Shut down.</lang>
To run the code, just press <b>Ctrl+R</b>. As the code says in <i>Plain English</i>, "Hello World!" should now be written, and you have to press the Escape key to shut it down.
Upon running the code, it should now be compiled to an EXE file in the same directory as the code and with the same name as the <i>directory</i> (so, "HelloWorld1.exe").
Like most text editors, you may press <b>Ctrl+S</b> to save the file. To quit the IDE, you may press <b>Ctrl+Q</b> or click the letter 'Q', then click 'Quit.'
==== Plain Graphical HelloWorld ====
Make another directory inside your Working folder (say, "HelloWorld2"), and do the steps as above in the console version. This time, the code is as follows:
<lang plainenglish>To run:
Start up.
Clear the screen.
Write "Hello World!".
Refresh the screen.
Wait for the escape key.
Shut down.</lang>
This time, the background is black, and the "Hello World!" text is green.
==== Documentation ====
Inside the IDE folder, you can find the documentation <code>instructions.pdf</code> inside the "documentation" folder. Happy <strike>coding</strike> commanding!


=={{header|PowerShell}}==
=={{header|PowerShell}}==