This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
CardboardDog edited this page Aug 14, 2023
·
3 revisions
Getting started in Rosie is easy! Just follow these instructions and you'll be ready to program in Rosie.
To begin using Rosie, you'll need a few things.
- A c++ compiler (CLang/GCC on MacOS or GCC/MinGW on Windows and Linux Distros)
- And if you are planning to build from the source, you will need Python 3
- First, make a folder called "rosie" at "C:\Program Files\rosie" on windows or "/usr/bin/rosie" on windows.
- Then, make two more folders inside called "bin", and "pckg"
- Once you have all the required tools, grab the latest source release (should be titled with SRC 1.X.XX) and extract it to a convenient directory.
- Then open the Debugger folder and type
c++ debug.cxx -o debugger.exe
- now copy the generated executable to the rosie/bin folder we created earlier.
- Now, open the extracted "compiler" folder in terminal.
- Next, if you are on windows type
pip install py2exe
and then typepython build.py
. if you are on Linux, typepip install pyinstaller
then typepyinstaller rosie.py
- copy the generated binary and libraries to the "rosie/bin" folder we made earlier.
- Then, copy all the files inside the extracted "Packages" folder to the folder that we created called "pckg".
- Finally, on windows you need to add the C:/Program Files/rosie/bin/ file to the system path. Or on Linux type
export PATH=/usr/bin/rosie/bin/:$PATH
- Restart your computer, open terminal and type
Rosie
. The terminal should stateerror: file dose not exist
orTraceback (most recent call last): File "Rosie.py", line 17, in <module> File "readagrv.pyc", line 4, in read IndexError: list index out of range
If you are gettingRosie: The term 'Rosie' is not recognized as the name of a cmdlet, function, script file, or operable
try restarting the computer or reinstalling Rosie. Also, make sure that your rosie folder looks similar to this structure:
rosie
|__bin
| |__debugger.exe
| |__Rosie.exe
|
|__pckg
|__files/
|__io/
|
And so on...
Create a new folder, then make a file inside of the folder called "HelloWorld.rose" Inside of HelloWorld.rose type
add io/io
io.out("hello rosie")
Now open the folder in terminal and type Rosie HelloWorld.rose
.
After the command is done executing run the generated executable file in terminal, you should get this hello rosie