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++:

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

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

n++ example

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

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

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