Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonota88/vm2gol-v2-c
toy compiler
https://github.com/sonota88/vm2gol-v2-c
c compiler
Last synced: 19 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T07:25:26.000Z (over 1 year ago)
- Last Synced: 2023-06-04T09:08:00.700Z (over 1 year ago)
- Topics: c, compiler
- Language: C
- Homepage:
- Size: 239 KB
- Stars: 1
- Watchers: 1
- 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
```