NLP++ code syntax is similar to C or C++ code. Further topics within the Code Syntax section elaborate the tokens, data types, variables, operators, functions, actions, expressions, statements, arrays, and other constructs of the language.
An interesting feature of NLP++ is that variables are named by strings and not by identifiers. You can primarily refer to variables with the G(), X(), N(), and S() special functions, which refer to a global, context, node, and suggested node variable respectively. Some functions take variable names as arguments, e.g., pnvar.
NLP++ data types include integer, float, string, parse tree, and knowledge base types.