Contents
Syntax
The syntax for
$`expression`
exprtk{options}(expression)
exprtk{f, options}(file-path)
exprtk{options}
{
//block of ExprTk code
}
$`expression`
@exprtk{options}(expression)
@exprtk{f, options}(file-path)
@exprtk{options}
{
//block of ExprTk code
}
Description
The
Note: The preceding
Options
The following options are available for
| option | description |
|---|---|
| param specifies file-path | |
| use |
|
| use |
|
| do not return output | |
| return output | |
| parse block with language call is made from before compiling and evaluating with |
|
| do not round value of |
|
| option | description |
f++ example
Examples of
$`var x:=0; nsm_write(console, x, endl)`
exprtk
{
var x:=0;
nsm_write(console, x, endl);
}
exprtk("./path.exptk")
exprtk.add_package(basicio_package)
exprtk
{
for(var i:=0; i<10; i+=1)
{
println('i: ', i);
}
}
int x = $`2^2 + 3*8 + 4`
console(x)
n++ example
Example of
$`var x:=0; nsm_write(console, x, endl)`
@exprtk
{
var x:=0;
nsm_write(console, x, endl);
}
@exprtk("./path.exprtk")
@exprtk.add_package(basicio_package)
@exprtk
{
for(var i:=0; i<10; i+=1)
{
println('i: ', i);
}
}
@int(x = $`2^2 + 3*8 + 4`)
@console(x)

![[ports] (FreeBSD) Get it from the FreeBSD [ports]](../../images/freebsd.webp)
