fn: f++
[contents]

Contents

Syntax

The syntax for f++ calls is:

f++:  
f++{options}(file-path)
f++{options}
{
	//block of f++ code
}


n++:  
@f++{options}(file-path)
@f++{options}
{
	//block of f++ code
}

Description

The f++ function is for evaluating f++ code, it takes zero parameters with the call followed by a block of f++ code otherwise a single parameter that should be a file-path to f++ code to be parsed. See here for more information about f++.

Options

The following options are available for f++ calls:

option description
f or file parse file-path given as single param
!o do not return output
o return output
!p do not parse params
p parse params (default)
option description

n++ example

Example of f++ being used with n++:

  1. @f++("./script.f")
  2. @f++
  3. {
  4. string str = "hello, world!";
  5. console(str);
  6. }
  7. @f++
  8. {
  9. for(:=(int, i=0); i<10; i+=1)
  10. console("i: ", i)
  11. }