https://github.com/sonota88/vm2gol-v2-c
toy compiler
https://github.com/sonota88/vm2gol-v2-c
c compiler
Last synced: 9 months ago
JSON representation
toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/vm2gol-v2-c
- Owner: sonota88
- License: mit
- Created: 2020-09-05T19:24:23.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T07:25:26.000Z (about 3 years ago)
- Last Synced: 2025-04-23T11:08:40.266Z (about 1 year ago)
- Topics: c, compiler
- Language: C
- Homepage:
- Size: 239 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
素朴な自作言語のコンパイラをCに移植した
https://memo88.hatenablog.com/entry/2020/09/06/043607
```
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
```
```sh
$ LANG=C wc -l mrcl_*.c lib/{utils,types}.{c,h}
571 mrcl_codegen.c
190 mrcl_lexer.c
628 mrcl_parser.c
113 lib/utils.c
17 lib/utils.h
322 lib/types.c
89 lib/types.h
1930 total
$ cat mrcl_*.c lib/{utils,types}.{c,h} | grep -v '^ *//' | wc -l
1911
$ LANG=C wc -l lib/json.*
141 lib/json.c
4 lib/json.h
145 total
```