summaryrefslogtreecommitdiff
path: root/README.md
blob: 5ff9981b1ab2a744acb95b9b7720ed0db009d464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# cOok
An Ook! compiler

As a reminder, ook is just [Brainf\*\*\*](https://esolangs.org/wiki/Brainfuck), but with these rules:
| Ook | Brainf\*\*\* |
|-----|-----------|
| Ook. Ook? | > |
| Ook? Ook. | < |
| Ook. Ook. | + |
| Ook! Ook! | - |
| Ook! Ook. | . |
| Ook. Ook! | , |
| Ook! Ook? | [ |
| Ook? Ook! | ] |

*Make sure that there is exactly one space/newline between each ook, and that you add no extra code*

# Windows

The file extension of the file must be exactly 3 letters. A recommended file extension is *.ook.
To compile ook, `cd` to the directory where cOok is installed, then run:
```
cd build/Windows
cook <file>
```

# GNU/Linux

To compile ook, `cd` to the directory where cOok is installed, then run:
```
cd build/GNULinux
./cook <file>
```

If you want to compile the source, just run:
```
make
```
in the source directory.