Skip to content

Commit 12a8fd6

Browse files
committed
merge
1 parent a3392f2 commit 12a8fd6

File tree

2 files changed

+61
-63
lines changed

2 files changed

+61
-63
lines changed

README.md

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
1-
# JavascriptBrainFuck
2-
take good care of your brain.
1+
## Javascript Brainfuck
2+
---
3+
Author: MeetinaXD
4+
Last Edit: Marc 21, 2021
5+
6+
> Treat your brain well
7+
8+
This is a meaningless project **for joy purposes**.
9+
10+
This project contains a `sample` of how to run JavaScript Brainfuck codes and a `compile` for **converting** normal codes to Brainfuck-like codes.
11+
12+
### Download and Run
13+
---
14+
There is no installation required, download the latest release and unpack the zip file.
15+
16+
#### Run Sample
17+
To view the sample, open `index.html` in your browser (`Google Chrome` is recommended)
18+
19+
Then, press `Command + Shift + I` or `Ctrl + Shift + I` (On Windows) to open `DevTools`
20+
21+
See the log.
22+
23+
#### Compiler Requirement
24+
25+
`Node` environment is requireto run `compile.js`, you may need to install `colors` `shelljs` and `yargs` package.
26+
27+
use **NPM**
28+
```shell
29+
npm i colors shelljs yargs
30+
```
31+
32+
### Use Brainfuck Compiler
33+
---
34+
You can get the usege in the terminal, use
35+
```shell
36+
node compile.js -h
37+
```
38+
**or**
39+
```shell
40+
node compile.js --help
41+
```
42+
43+
Brainfuck Compile offer you **3 options**, usage:
44+
```shell
45+
node compile.js sources [-o|--output] destination [-h|--help] [-r|--run]
46+
```
47+
48+
#### `-o | --output`
49+
Specific the output path, **only ONE** path will be recognized as output path.
50+
51+
#### `-h | --help`
52+
Print out the help message age usage
53+
54+
#### `-r | --run`
55+
Run the codes after compile successfully.
56+
57+
### Additional Words
58+
---
59+
Hope you enjoy it and I highly recommend you do NOT use it in a commercial project.
60+
If you insist on doing this, please do not leave personal information.
61+
Life is once.

readme.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)