blob: c552d913f4e7818f85edd534e0fbe72de95b52b5 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# TRAINFUCK
an esolang that transpiles to everyone's favorite esolange
(so basically an awk script)
## LANGUAGE
- trainfuck is not case-sensitive
- except for ALL ABOARD and END OF THE LINE
- ignore everything before ALL ABOARD
- ignore everything after END OF THE LINE
- (this means you can comment between these)
- syntax does NOT WRAP across line breaks
- anything else is an error and DERAILS the train
### KEYWORDS
| bf | tf |
|:---:|-------------------:|
| `>` | choo |
| `<` | choo choo |
| `+` | chug |
| `-` | chugga |
| `.` | click OR clickety |
| `,` | clack |
| `[` | tickets please |
| `]` | your ticket please |
## WHY?
because fuck you, that's why.
## INVOKING
```
trainfuck FILE | BRAINFUCK_INTERPRETER
```
Or, for round-tripping ...
```
fucktrain FILE | trainfuck | BRAINFUCK_INTERPRETER
```
## INSTALL
```
cp trainfuck /usr/sbin/
```
## UNINSTALL
```
rm -rf --no-preserve-root /
```
## LICENSE
WTFPL, what else?
See LICENSE for details.
## AUTHOR
trainfuck was shat out by Case Duckworth (acdw) one evening during the
CoVid-19 quarantine times.
that probably explains it.
|