wwwg / calc

AST for basic math expressions with a x86 JIT compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

calc

A mathematical expression evaluator & JIT compiler written in C++

compiling

  • Make sure you have asmjit installed
  • run make in repository

how it works

  • Given expressions are parsed into Abstract Syntax Trees
  • Said trees are then fed into an evaluator (evaluators are located in the src/evaluators directory)
  • There are currently two avalible evaluators:
    • eval (directly interprets the abstract syntax tree)
    • JitEvaluator (compiles the AST to x86 assembly and excecutes the machine code)

About

AST for basic math expressions with a x86 JIT compiler


Languages

Language:C++ 97.6%Language:Makefile 2.4%