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

https://github.com/pickledchair/pl0dash

PL/0' compiler
https://github.com/pickledchair/pl0dash

Last synced: 10 months ago
JSON representation

PL/0' compiler

Awesome Lists containing this project

README

          

# PL/0' コンパイラ(in Rust)

勉強のために、中田育男先生の著書「[コンパイラ 作りながら学ぶ](https://www.ohmsha.co.jp/book/9784274221163/)」の巻末のソースコード(C言語による)を比較的素直にRustで書き直したものです。

(オリジナルのコードは[中田先生のホームページ](http://www.k.hosei.ac.jp/~nakata/oCompiler/oCompiler.html)でも公開されています。)

## 実行方法

```
$ cargo run /path/to/pl0dash_source
```

あるいは

```
$ cargo run
...
enter source file name
/path/to/pl0dash_source
```

## 命令語のリストを印字

```
$ cargo run /path/to/pl0dash_source -p
```