Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonota88/vm2gol-v2-zig
toy compiler
https://github.com/sonota88/vm2gol-v2-zig
compiler zig ziglang
Last synced: 1 day ago
JSON representation
toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/vm2gol-v2-zig
- Owner: sonota88
- License: mit
- Created: 2021-01-05T23:09:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T23:39:03.000Z (over 2 years ago)
- Last Synced: 2023-04-13T15:42:25.439Z (over 1 year ago)
- Topics: compiler, zig, ziglang
- Language: Zig
- Homepage:
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
素朴な自作言語のコンパイラをZigに移植した - memo88
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.9.1LANG=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
```