Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
test
.gitignore
Makefile
README.md
ast.c
ast.h
lexer.h
lexer.rl
parser.y
unused.h

README.md

C

You need:

  • make
  • A C compiler such as gcc or clang

To compile, just run

make

This should create a shared library, but no executable. The C library only contains a lexer, parser and a simple AST. It does not implement the visitor that traverses the AST that evaluates the parsed expression. This is done in the ruby extension, and a future extensions for Node.js, Python, Lua etc. could do the same.