N Code Language
Home ] Up ] N Code Execution Model ] [ N Code Language ] N Code Data Types ] N Code Expressions ] N Code Statements ] N Code Variables and Scoping Rules ] N Code Filters ] N Code Function Definition ] N Code Tools ] N Code Triggers ]


N Code Language

Literals

Literals are typed.

Numeric Literals

base 10, or base 16. Base 16 values are prefixed with 0x. No octal literals

Examples: 1 0x10

String Literals

Enclosed in double quotes. Backslashes escape double quote. A few characters can be escaped: specifically \t and \n.

Example: "abc" "abc\nabc" "abc\"abc"

Host Addresses

Host address can appear as literals, but only in the form of a fully qualified host address, in either decimal or hex notation...

Example: 211.234.4.56 0xde.0xad.0xfe.0xed

Net Addresses

A complete host address, followed by a colon, followed by a complete network mask.

Examples: 211.234.4.56:255.255.255.0

Lists

Lists are collections of types.

Example: [ 1, 2, 3 ] [ 1, "string", 3, 211.234.4.56 ]

Statement Blocks

Braces are used to collect together ';' terminated statements.

Example:

{
echo( "hello world\n" );
echo ( 1+2*3+4 ) ;
}

Back ] Home ] Up ] Next ]