BSD Ports

math/spar 0.5.10_7 DragonFly

Modular math parser

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
devel, math
Package size
76.4 KiB, 439.8 KiB installed

Description

Spar is a modular math parser that comes with a fully featured text frontend, something like an interactive calculator. It also provides a simple but complete API for C/C++ programmers. This API provide a complete interface to a top down parser that supports: variables, constants, functions, modules and a libc based math library. This math library overrides standard functions with a "custom" version (such as. deg, rad auto conversion, infinite symbol, function domain...).

Spar, can be easily extended with modules. A module is a "user" extensions, written in C/C++, to the basic features of the Simple Parser. Here you can find the module definition: is a C structure that contains only few data member: - module name - module version - module description - a pointer to the module main function

The modules are loaded at run-time by the module loader (that is a high level layer of the module manager): you can load your modules, simply, coping theirs paths into the .spar_modules (or any other file, with the -c option).

In the other systems

SystemPortVersion
DragonFlymath/spar0.5.10_7
FreeBSDmath/spar0.5.10_7
HardenedBSDmath/spar0.5.10_7
GhostBSDmath/spar0.5.10_7

Install

Binary package:

pkg install spar

From DPorts:

cd /usr/dports/math/spar && make install clean

Dependencies

Run dependencies 2

No port depends on this one.