Skip to content

The slowest AST interpreter you've seen in your life! This project is participant of The first Rinha de compiladores promoted by https://github.com/aripiprazole/rinha-de-compiler

Notifications You must be signed in to change notification settings

MarcosCostaDev/RinhaCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rinha Compiler

Tree-Walking Interpreter implemented in CSharp using Doubly Linked List (why not?!)

Nuget

Build and Run

  • build
docker build -t rinha .
  • fib
docker run -it rinha files/fib.json
  • sum
docker run -it rinha files/sum.json
  • combination
docker run -it rinha files/combination.json
  • helloworld
docker run -it rinha files/helloworld.json

How to use

You don't need to download the source code to run this Interpreter, you can install it in your machine using the dotnet tool.

dotnet tool install -g Rinha

You can run the command

rinha <your file>

Interpreter Language Features

  • Call
  • Function
  • Let
  • Var
  • Int
  • Str
  • Binary
  • If
  • Print
  • First
  • Second
  • Bool
  • Tuple

About

The slowest AST interpreter you've seen in your life! This project is participant of The first Rinha de compiladores promoted by https://github.com/aripiprazole/rinha-de-compiler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published