giancarlopro / rinha-de-compiler

Interpretador de AST feito em C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rinha-de-compiler

Tests And Image

Esse projeto é um interpretador criado para ser submetido a rinha de compilers.

Como executar

Basta compilar o projeto e executar o binário gerado passando o caminho para o arquivo que deseja executar.

make
./build/interpreter <path-to-file>

Ou usando o docker

docker build . -f Dockerfile -t rinha-c-interpreter

docker run \
    --rm \
    -v <path-to-file>:/var/rinha/source.rinha.json \
    rinha-c-interpreter

CheckList de Funcionalidades

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

About

Interpretador de AST feito em C

License:GNU General Public License v3.0


Languages

Language:C 97.7%Language:Makefile 1.1%Language:Dockerfile 0.8%Language:Shell 0.4%