Introductory presentation (ru)
Etude is lower-ish level programming language designed for educational purposes but with the aspirations of writing real-world software.
Currently the compiler can run some basic programs but hopelessly lacking in other ways. Sometimes in non-obvious ways. I do intend to fix all these imperfections eventually, if the god is willing. Until then, have fun!
- Github ← ⭐⭐⭐!
- Sourcehut
- Gitea with syntax highlighing ← code written in Étude
- Look in the
examples/test
directory to get a feeling of the syntax - Build the compiler:
-
Dependencies:
fmt
,qbe
. -
Run
cmake
&make
cmake -B build cd build make -j8
-
Add the path to stdlib to your environment
The author does this:
export ETUDE_STDLIB="$HOME/.cache/etude" ln -s $(realpath ./stdlib) $ETUDE_STDLIB
-
Run the tests (if they fail, try different commit)
chmod +x test.sh ./test.sh
-
- At this point you are ready to hack on the compiler
Check out the 0.2.0
tag of the repository: it contains the bytecode compiler
and interpreter as well as graphviz vizualizer.