55 lines
516 B
Markdown
55 lines
516 B
Markdown
# grassmudhorse.rs
|
|
|
|
Grass Mud Horse in Rust
|
|
|
|
compile:
|
|
```shell
|
|
$ cargo b
|
|
|
|
OR
|
|
|
|
$ cargo b --release
|
|
```
|
|
|
|
help:
|
|
```shell
|
|
$ ./target/debug/grassmudhorse -h
|
|
grassmudhorse.rs v0.1
|
|
```
|
|
|
|
execute from file:
|
|
```shell
|
|
$ ./target/debug/grassmudhorse print-110.gmh
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
```
|
|
|
|
execute from stdin:
|
|
```shell
|
|
$ cat print-110.gmh | ./target/debug/grassmudhorse
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
```
|
|
|
|
compile and execute:
|
|
```shell
|
|
$ ./target/debug/grassmudhorse --compile plus1100.gmh.source | ./target/debug/grassmudhorse
|
|
5050
|
|
```
|