Skip to content

nfCommon Config

Michał Witanowski edited this page Apr 15, 2016 · 1 revision

Syntax

Basic data types are integers, floats, strings and booleans:

integerValue = 1
booleanValue = true
floatValue = 10.0
stringValue = "this is a string"

Hexadecimal values are also supported:

hexValues = 0xFFFF

Objects:

object =
{
  int = 1
  nestedObject =
  {
    blah = 123
  }
}

Arrays:

array = [ 1 2 3 ]
mixedTypesArray = [ 1 2.0 "string" true ]

Comments:

// single line comment
/*
multiline comment
*/

New lines and spaces are not required, so this is a valid syntax:

twoDimensionArray=[[1 2][3 4]] arrayOfObjects=[{a=1}{b=1}]