Skip to content

AribYadi/pyr

Repository files navigation

Pyr

build status

Pyr is a programming language similar to python (or in other words, python but not python). For more information, see the documentation.

Table of Contents

Requirements

Building

cargo build --release

Usage

To 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!

Examples

Hello, World:

print("Hello, World")

If statements:

if true:
  print(123)
else:
  print(456)

For more examples, see the examples directory.

Testing

To run unit test the source code, run the following command:

cargo ntest

To run end-to-end tests, run the following command:

./run_tests.py

Turing Completeness

We have proved a Turing Completeness for Pyr by implementing Rule 110 which you can see here.

Documentation

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 --open

Note: To build it locally you need to install mdbook.

Editor Support

License

Apache-2.0

Releases

No releases published

Packages

 
 
 

Contributors