summaryrefslogtreecommitdiff
path: root/README.md
blob: 7cd1d3fabfdfa732b800af9482ed66c2bacd8804 (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
40
41
42
43
44
45
46
47
48
# 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!    ]  

**You can write a comment anywhere, as long as it doesn't have periods, commas, or exclamation marks.**

# 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
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/GNULinux
./cook <file>
```
You can also add cook to /usr/bin so that it's in your path.
```
sudo cp build/GNULinux
```
Then you can just run:
```
cook <file>
```
Anywhere


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