unlogic
Loading...
Searching...
No Matches
Unlogic

A math JIT compiler and graph generator.

Releases

unlogic is currently in alpha, but semi-functional test versions for apple-silicon macs can be found on the releases page. These do not bundle the following dependencies: qt, vulkan. As such, they must be installed via homebrew prior to use.

brew install qt vulkan-tools

Examples

JIT-Compiling and Running a Function

++
auto program = *compiler.Compile("given f(x) := x^2; plot f;");
program(&scene);
bf::DefineNonTerminal< G, std::unique_ptr< Node > > program
Definition Parser.cpp:191
std::expected< city::Assembly, CompilationError > Compile(std::string_view program_text, std::vector< bf::Token< ParserGrammarType > > *tokens=nullptr)
Definition Compiler.cpp:9
UniqueNode unique_node(Args &&... args)
Definition Node.h:145

Calculator

Use unlogic-calculator, a Qt/Vulkan-based GUI for unlogic to perform graph analysis.