Strudel is an educational (for me) language. It's purpose is to be a language whose syntax is similar to assembly. It is compiled into bytecode and then run by an interpreter.
- Linux - the program uses some linux-specific system calls, and most probably won't work on any other OS. I don't have any other OS, so maybe it does.
- 64 bit architecture - I'm not entirely sure what will happen if you don't use a 64 bit arch.
- gcc - I used
make
instead ofcmake
, so you're going to needgcc
. - (A terminal that supports ANSI escape codes - this isn't exactly necessary, I don't think. You can check this by going onto your terminal and executing:
The text should be red and bold. If it's not, Strudel's error messages may look weird.)
$ echo -e "\e[31;1mThis text should be red and bold\e[0m"
First, clone the repository. Then you'll need to compile the program:
$ git clone https://github.com/Shlurp/Strudel
$ cd Strudel
$ make
This will:
- Create clone this repository into a directory named
Strudel
. - Enter that directory
- Compile the program
You will get two compiled programs: stru
and cstru
.
cstru
is the compiler for Strudel. It converts Strudel source code into bytecode.stru
executes the bytecode compiled bycstru
. To check if they are working correctly, execute the following:
$ ./cstru demos/hello_world.asm
$ ./stru a.out
You should get a bright bold yellow message "Hello World!". If you don't, check that you have all of the dependencies.
The quick documentation of Strudel can be found here
More in depth tutorials can be found here