https://github.com/sonota88/vm2gol-v2-zig
simple toy compiler
https://github.com/sonota88/vm2gol-v2-zig
compiler zig ziglang
Last synced: 2 months ago
JSON representation
simple toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/vm2gol-v2-zig
- Owner: sonota88
- License: mit
- Created: 2021-01-05T23:09:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-29T07:30:02.000Z (3 months ago)
- Last Synced: 2025-03-29T08:25:54.542Z (3 months ago)
- Topics: compiler, zig, ziglang
- Language: Zig
- Homepage:
- Size: 193 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
素朴な自作言語のコンパイラをZigに移植した
https://memo88.hatenablog.com/entry/2021/01/07/235019```sh
git clone --recursive https://github.com/sonota88/vm2gol-v2-zig.git
cd vm2gol-v2-zig
./docker.sh build
./test.sh all
``````sh
./docker.sh run zig version
# 0.14.0LANG=C wc -l {lexer,parser,codegen}.zig lib/{types,utils,json}.zig
# 189 lexer.zig
# 630 parser.zig
# 552 codegen.zig
# 209 lib/types.zig
# 210 lib/utils.zig
# 144 lib/json.zig
# 1934 total
```