Ashwin-op / JIT-Compiled-Expression-Evaluator

Repository from Github https://github.comAshwin-op/JIT-Compiled-Expression-EvaluatorRepository from Github https://github.comAshwin-op/JIT-Compiled-Expression-Evaluator

JIT Compiled Expression Evaluator

This is a simple expression evaluator that uses a custom JIT compiler to generate C code from an expression string and then compiles it into a shared library. The shared library is then loaded and the function pointer is called to evaluate the expression.

Usage

$ make
$ ./cs238

Tests

Python 3.8+ and pytest are required to run the tests.

$ pytest

About


Languages

Language:C 86.6%Language:Python 10.6%Language:Makefile 2.8%