Pyr is a programming language similar to python (or in other words, python but not python). For more information, see the documentation.
- LLVM == 14.0.x
cargo build --releaseTo interpret the source code, run the following command:
$ pyr run ./examples/hello.pyr
Hello, World!To compile the source code, run the following command:
$ pyr compile ./examples/hello.pyr --link
$ ./examples/hello
Hello, World!Hello, World:
print("Hello, World")If statements:
if true:
print(123)
else:
print(456)For more examples, see the examples directory.
To run unit test the source code, run the following command:
cargo ntestTo run end-to-end tests, run the following command:
./run_tests.pyWe have proved a Turing Completeness for Pyr by implementing Rule 110 which you can see here.
For the online documentation, https://aribyadi.github.io/pyr/.
Or you can build it locally and run it with the following command:
cd docs
mdbook serve --openNote: To build it locally you need to install mdbook.
- VSCode: vscode-pyr