Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/10maurycy10/awk
A Brainfuck interpreter in (g)AWK, because why not!
https://github.com/10maurycy10/awk
Last synced: 11 days ago
JSON representation
A Brainfuck interpreter in (g)AWK, because why not!
- Host: GitHub
- URL: https://github.com/10maurycy10/awk
- Owner: 10maurycy10
- License: unlicense
- Created: 2021-12-10T21:07:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T18:42:06.000Z (almost 3 years ago)
- Last Synced: 2024-11-20T21:58:52.601Z (2 months ago)
- Language: Awk
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWK
A [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck#Language_design) interpreter in (g)AWK, because why not!
## What is AWK
(g)awk is a program for general data processing and tabulation.
````awk '{print $1,$2,$1+$2}' file````
Will print out the first and second columns of the file along with the sum of the columns.
```awk 'BEGIN {sum=0} {sum += $1} END {print sum}'```
Will sum the first column.
However it turns out that awk is turing complete...
## Running
just run:
````awk -f bf.awk [file]````
The (brainfuck) program is taken from stdin unless a file is specifyed.
If you are using a terminal to enter the (brainfuck) program use ``^d`` to indicate the end of it.an example program is ``hello.bf``. it can be run with ``awk -f bf.awk hello.bf``
## Limitations
Inputs are numeric, instead of using ASCII.