Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81333 / brainfsck / README.md
blob: f9ef70c652ff3c5fea1294b08128a6a80a4b09e0 (plain) (blame)
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
# Brainfsck interpreter

# How to build

Install [stack](https://docs.haskellstack.org/en/stable/README/) build tool

Run following commands from root of project:

Building:

```
stack build
```

Executing:

```
stack exec brainfsck <file_with_code>
```

# Examples

Examples are in `examples/` folder.

Best ones are: 

* `stack exec brainfsck examples/sierpinski.bf` - outputs sierpinski triangle
* `echo 0123456789 | stack exec brainfsck examples/pretty.bf` - pretty prints numbers