https://github.com/sonota88/mini-ruccola-csharp
simple toy compiler
https://github.com/sonota88/mini-ruccola-csharp
compiler csharp
Last synced: 9 months ago
JSON representation
simple toy compiler
- Host: GitHub
- URL: https://github.com/sonota88/mini-ruccola-csharp
- Owner: sonota88
- License: mit
- Created: 2023-07-02T00:06:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T07:03:08.000Z (over 2 years ago)
- Last Synced: 2025-02-16T15:17:35.074Z (over 1 year ago)
- Topics: compiler, csharp
- Language: C#
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a port of the compiler part of [vm2gol-v2 (Ruby version)](https://github.com/sonota88/vm2gol-v2).
C#で簡単な自作言語のコンパイラを書いた
https://qiita.com/sonota88/items/c0a5bf76d7eb3aa4c507
```
$ dotnet --version
8.0.120
```
```
git clone --recursive https://github.com/sonota88/mini-ruccola-csharp.git
cd mini-ruccola-csharp
./docker.sh build
./test.sh all
```
```
$ LANG=C wc -l src/{Lexer,Parser,CodeGenerator}.cs
73 src/Lexer.cs
430 src/Parser.cs
422 src/CodeGenerator.cs
925 total
```