An open API service indexing awesome lists of open source software.

https://github.com/sonota88/vm2gol-v2-bash

toy compiler
https://github.com/sonota88/vm2gol-v2-bash

bash compiler

Last synced: 2 months ago
JSON representation

toy compiler

Awesome Lists containing this project

README

          

シェルスクリプト(Bashスクリプト)でかんたんな自作言語のコンパイラを書いた
https://qiita.com/sonota88/items/79dd2b0c1dae776c56d9

```
$ LANG=C bash --version | grep bash
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
```

```
git clone --recursive https://github.com/sonota88/vm2gol-v2-bash.git
cd vm2gol-v2-bash
./test.sh all
```

```
$ LANG=C wc -l {lexer,parser,codegen}.sh lib/*.sh
220 lexer.sh
655 parser.sh
525 codegen.sh
35 lib/common.sh
193 lib/json.sh
284 lib/utils.sh
1912 total
```