https://github.com/sonota88/vm2gol-v2-typescript
simple toy compiler
https://github.com/sonota88/vm2gol-v2-typescript
compiler deno typescript
Last synced: about 1 month ago
JSON representation
simple toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/vm2gol-v2-typescript
- Owner: sonota88
- License: mit
- Created: 2020-08-15T02:39:29.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T11:25:12.000Z (over 2 years ago)
- Last Synced: 2025-02-16T15:17:33.425Z (over 1 year ago)
- Topics: compiler, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 221 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TypeScript port of [Mini Ruccola (vm2gol-v2)](https://github.com/sonota88/vm2gol-v2) compiler
[TypeScript(Deno)でシンプルな自作言語のコンパイラを書いた](https://memo88.hatenablog.com/entry/2020/08/15/114754)
```
$ LANG=C wc -l mrcl_{lexer,parser,codegen}.ts
80 mrcl_lexer.ts
495 mrcl_parser.ts
534 mrcl_codegen.ts
1109 total
```
```sh
git clone --recursive https://github.com/sonota88/vm2gol-v2-typescript.git
cd vm2gol-v2-typescript
./docker.sh build
./test.sh all
```
```
$ deno --version
deno 2.6.9 (stable, release, x86_64-unknown-linux-gnu)
v8 14.5.201.2-rusty
typescript 5.9.2
```