An open API service indexing awesome lists of open source software.

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

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
```