3 Fur is a programming language for the next millenium. In 1000 years, humans will likely still like
4 furry animals, so Fur is named in their honor.
8 1. Create and activate a virtual environment with Python 3. On most systems, this will look something like `python3 -m venv .env/ && .env/bin/activate`.
9 2. Install dependencies from `requirements.txt` using `pip`: `pip install -r requirements.txt`.
14 Example Fur programs are in the `examples/` folder. The main compiler (`main.py compile`) compiles Fur
15 programs to C. An example of usage:
17 ~/fur$ python main.py examples/01_hello.fur
18 ~/fur$ gcc examples/01_hello.fur.c
22 You can also run the programs through an interpreter (`main.py interpret`):
24 ~/fur$ python main.py examples/01_hello.fur
27 The final way to invoke the main program is `main.py ir`. This outputs an intermediate "assembly" for the bytecode representation of the program:
29 ~/fur$ python main.py ir examples/01_hello.fur
31 push_string "Hello, world"
39 Integration tests are divided into three categories:
41 * Compiler output tests: test that compiled Fur programs give expected output. Run with `python integration_tests.py CompilerOutputTests`.
42 * Interpreter output tests: test that interpreted Fur programs give expected output. Run with `python integration_tests.py InterpreterOutputTests`.
43 * Memory lead tests: test that compiled Fur programs don't leak memory (requires Valgrind). Run with `python integration_tests.py MemoryLeakTests`.
45 Calling `python integration_tests.py` with no arguments runs all the integration tests.
49 Fur is GPL 3 and will only ever target GPL compilers. Fur supports closures, integer math, boolean
50 logic, lists, structures (similar to objects), and strings (implemented as
51 [ropes](https://en.wikipedia.org/wiki/Rope_(data_structure))). It doesn't yet support
52 exceptions, multithreading, modules, or anything resembling a standard library. If that sounds
53 like something you want to use in production code, good luck to you.