about summary refs log tree commit diff stats
path: root/README.md
blob: a8c7369b5e848f20d366ddee3613496fb85be68f (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
67
# TRAINFUCK

an esolang that transpiles to everyone's favorite esolang
(so basically an awk script)
**NOW WITH MORE SCRIPTING CAPABILITIES!**

## 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.tf
```

Or, for round-tripping ...

```
fucktrain FILE.bf | trainfuck
```

## INSTALL

```
make install
```

## UNINSTALL

```
rm -rf --no-preserve-root /
```

## LICENSE

WTFPL, what else?
See [COPYING](https://git.acdw.net/trainfuck/tree/COPYING) for details.

## AUTHOR

trainfuck was shat out by Case Duckworth (acdw) one evening during the
CoVid-19 quarantine times.
that probably explains it.