fn: exprtk.str
[contents]

Contents

Syntax

The syntax for exprtk.str calls is:

f++:  
exprtk.str()
exprtk.str(name)

n++:  
@exprtk.str()
@exprtk.str(name)

Description

The exprtk.str function either takes zero parameters and returns the currently compiled ExprTk expression as a string, otherwise a single parameter that should be the name of a compiled expression and returns the compiled ExprTk expression for that name as a string. See here for more information about ExprTk.

f++ example

Examples of exprtk.str being used with f++:

exprtk.add_package(basicio_package)
exprtk.compile(println('hello, world!'))
console(exprtk.str())

exprtk.add_package(basicio_package)
exprtk.compile(hello, println('hello, world!'))
console(exprtk.str(hello))

n++ example

Examples of exprtk.str being used with n++:

@exprtk.add_package(basicio_package)
@exprtk.compile(println('hello, world!'))
@console(exprtk.str())

@exprtk.add_package(basicio_package)
@exprtk.compile(hello, println('hello, world!'))
@console(exprtk.str(hello))

Sponsors