N Code Language |
N Code LanguageLiteralsLiterals are typed. Numeric Literalsbase 10, or base 16. Base 16 values are prefixed with 0x. No octal literals Examples: 1 0x10 String LiteralsEnclosed in double quotes. Backslashes escape double quote. A few characters can be escaped: specifically \t and \n. Example: "abc" "abc\nabc" "abc\"abc" Host AddressesHost 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 AddressesA complete host address, followed by a colon, followed by a complete network mask. Examples: 211.234.4.56:255.255.255.0 ListsLists are collections of types. Example: [ 1, 2, 3 ] [ 1, "string", 3, 211.234.4.56 ] Statement BlocksBraces are used to collect together ';' terminated statements. Example:
|
|