To use Pineapple interpreter, you need to install Node.js V8.11 first.
Then, open command prompt, run the following command:
npm install --global pineapple-alpha
For Windows users, you might need to open the command prompt in Administrator mode.
For Linux/Mac users, you might need to prefix the command above with
The current version of Pineapple is an alpha release, so it is meant for alpha testers only as it might contain a lot of bugs, and not all features are fully implemented yet.
To ensure that you have installed Pineapple successfully. Type the following command in your command prompt or terminal:
Then, you should see the following:
If you do not see something similar to the output above, it means that you had not successfully installed Pineapple, so you might need to retry again.
Create a Hello world! program¶
First, create a file called
Secondly, open the file in your favourite code editor (for example, Notepad).
Thirdly, copy and paste the following code into
def .main "Hello world!".show
Fourthly, save the file.
Lastly, type in the following command in your command prompt or terminal.
Happy hacking :)
Read more about Pineapple features.