An interpreter for R in C++.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_fig Adds new ascii cast Nov 24, 2018
src Fix `-Wpessimizing-move` Nov 24, 2018
tests Overhaul Oct 21, 2018
.clang-format Overhaul Oct 21, 2018
.codecov.yml Overhaul Oct 21, 2018
.gitattributes Overhaul Oct 21, 2018
.gitignore Overhaul Oct 21, 2018
.travis.yml Overhaul Oct 21, 2018
.valgrindrc Overhaul Oct 21, 2018
.yo-rc.json Overhaul Oct 21, 2018
LICENSE Init. Apr 5, 2017
README.md Updates install instructions Nov 25, 2018
VERSIONS.md Init. Apr 5, 2017
meson.build Add Meson build system Nov 24, 2018
meson_options.txt Add Meson build system Nov 24, 2018

README.md

R--

Project Status Build Status codecov Codacy Badge

An interpreter for R in C++.

R--

About

This repository contains a toy implementation of an interpreter for R written in C++. The project is mainly to understand how interpreters, lexers/tokenizers, parsers, ASTs and things like that work exactly. Since R and C++ are the greatest languages of all time, I chose to try it on these. However the lexer of course can translate to any language. So far the interpreter can do:

  • basic arithmetic,
  • functions,
  • data-structures,
  • clauses,
  • loops.

Installation and Usage

Clone/download the project and run:

meson build . && ninja -C build
./build/src/R--

This of course requires you to have meson which you cat get from conda-forge or pip.

Author

Simon Dirmeier simon.dirmeier@web.de