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
- Host: GitHub
- URL: https://github.com/sonota88/vm2gol-v2-bash
- Owner: sonota88
- License: mit
- Created: 2021-12-19T06:47:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T03:34:36.000Z (over 4 years ago)
- Last Synced: 2025-06-23T05:07:49.250Z (about 1 year ago)
- Topics: bash, compiler
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```