Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonota88/mini-ruccola-awk
simple toy compiler
https://github.com/sonota88/mini-ruccola-awk
awk compiler
Last synced: 19 days ago
JSON representation
simple toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/mini-ruccola-awk
- Owner: sonota88
- License: mit
- Created: 2024-07-21T03:28:03.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T08:01:25.000Z (5 months ago)
- Last Synced: 2024-08-18T09:21:37.188Z (5 months ago)
- Topics: awk, compiler
- Language: Awk
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AWK (gawk) port of [Mini Ruccola (vm2gol-v2)](https://github.com/sonota88/vm2gol-v2) compiler
AWK(gawk)でシンプルな自作言語のコンパイラを書いた
https://zenn.dev/sonota88/articles/e108476b2fb75d---
```
$ gawk --version | head -1
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)```
```
git clone --recursive https://github.com/sonota88/mini-ruccola-gawk.git
cd mini-ruccola-gawk./docker.sh build
./test.sh all
``````
LANG=C wc -l mrcl_*.awk lib/*.awk396 mrcl_codegen.awk
74 mrcl_lexer.awk
402 mrcl_parser.awk
105 lib/json.awk
114 lib/types.awk
31 lib/utils.awk
1122 totalLANG=C wc -l mrcl_*.awk
396 mrcl_codegen.awk
74 mrcl_lexer.awk
402 mrcl_parser.awk
872 total
```