fn: nsm_lang
[contents]

Contents

Syntax

The syntax for nsm_lang calls is:

f++:  
nsm_lang(string)

n++:  
@nsm_lang(string)

Description

The nsm_lang function is for changing the language in an interactive session, it is available from both the interpreter and shell modes, it takes a single string parameter to specify the language which should be one of the following:

  • f++
  • n++
  • lua
  • exprtk

f++ example

Example of nsm_lang being used with f++:

nsm_lang("lua")

n++ example

Example of nsm_lang being used with n++:

@nsm_lang("f++")

Sponsors