Port details on branch 2022Q2 |
- p5-Math-SymbolicX-ParserExtensionFactory Generate parser extensions
- 3.02_1 math =0 3.02_1Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2006-05-15 06:58:44
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: not specified in port
- WWW:
- https://metacpan.org/release/Math-SymbolicX-ParserExtensionFactory
- Description:
- This module provides a simple way to extend the Math::Symbolic parser with
arbitrary functions that return any valid Math::Symbolic tree. The return
value of the function call is inserted into the complete parse tree at the
point at which the function call is parsed. Familiarity with the
Math::Symbolic module will be assumed throughout the documentation.
This module is not object oriented. It does not export anything. You
should not call any subroutines directly nor should you modify any class
data directly. The complete interface is the call to use
Math::SymbolicX::ParserExtensionFactory and its arguments. The reason for
the long module name is that you should not have to call it multiple times
in your code because it modifies the parser for good. It is intended to be
a pain to type. :-)
The aim of the module is to allow for hooks into the parser without
modifying the parser yourself because that requires rather in-depth
knowledge of the module code. By specifying key => value pairs of function
names and function implementations (code references) as arguments to the
use() call of the module, this module extends the parser that is stored in
the $Math::Symbolic::Parser variable with the specified functions and
whenever "yourfunction(any argument string not containing an unescaped \)
)" occurs in the code, the subroutine reference is called with the
argument string as argument.
The subroutine is expected to return any Math::Symbolic tree. That means,
as of version 0.133, a Math::Symbolic::Operator, a
Math::Symbolic::Variable, or a Math::Symbolic::Constant object. The
returned object will be incorporated into the Math::Symbolic tree that
results from the parse at the exact position at which the custom function
call was parsed.
Please note that the usage of this module will be quite slow at compile
time because it has to regenerate the complete Math::Symbolic parser the
first time you use this module in your code. The run time performance
penalty should be low, however.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Math-SymbolicX-ParserExtensionFactory>0:math/p5-Math-SymbolicX-ParserExtensionFactory
- To install the port:
- cd /usr/ports/math/p5-Math-SymbolicX-ParserExtensionFactory/ && make install clean
- To add the package, run one of these commands:
- pkg install math/p5-Math-SymbolicX-ParserExtensionFactory
- pkg install p5-Math-SymbolicX-ParserExtensionFactory
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Math-SymbolicX-ParserExtensionFactory
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Math-SymbolicX-ParserExtensionFactory-3.02.tar.gz) = 94323a58dc19805e68d3e59c0750d337397456e98d0db4a342bfe5a80bef020f
SIZE (Math-SymbolicX-ParserExtensionFactory-3.02.tar.gz) = 6298
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Math-Symbolic>=0 : math/p5-Math-Symbolic
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Math-Symbolic>=0 : math/p5-Math-Symbolic
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- math/p5-Math-SymbolicX-BigNum
- math/p5-Math-SymbolicX-Complex
- math/p5-Math-SymbolicX-Error
- math/p5-Math-SymbolicX-Statistics-Distributions
- math/p5-Task-Math-Symbolic
- for Run
-
- math/p5-Math-SymbolicX-BigNum
- math/p5-Math-SymbolicX-Complex
- math/p5-Math-SymbolicX-Error
- math/p5-Math-SymbolicX-Statistics-Distributions
- math/p5-Task-Math-Symbolic
Configuration Options:
- No options to configure
- Options name:
- math_p5-Math-SymbolicX-ParserExtensionFactory
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|