Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mdf_file_format [2021/06/04 10:08] nlondonmdf_file_format [2023/09/01 16:05] (current) – Added more information to Array nlondon
Line 17: Line 17:
 ====== Valid Identifier Characters ====== ====== Valid Identifier Characters ======
  
-Names and Values can only contain these characters (Excluding spaces):+Property Names can only contain these characters (Excluding spaces):
 <code> <code>
  A-Z a-z 0-9 _!+-.  A-Z a-z 0-9 _!+-.
 </code> </code>
  
-Optionally, you can also surround the Name or Value with double quotes to include otherwise illegal characters, such as spaces, colons, and so on.+Optionally, you can also surround the Name with double quotes to include otherwise illegal characters, such as spaces, colons, and so on.
 <code> <code>
  ✅ ThisIsAValidIdentifier  ✅ ThisIsAValidIdentifier
Line 37: Line 37:
 ====== Elements ====== ====== Elements ======
  
-The value of a property is defined using an **Element**. There are a few different kinds of  +The value of a property is defined using an **Element**. There are three major types of element; [[#Value]]s, [[#Chunk]]s, and [[#Array]]s.
-An MDF is made up of sections collectively referred to as **Elements**. There are three major types of element; [[#Value]]s, [[#Chunk]]s, and [[#Array]]s.+
  
 ===== Value ===== ===== Value =====
Line 76: Line 75:
 ===== Array ===== ===== Array =====
  
-**Array** elements are very similar to [[#Chunk]] elements, in that they contain multiple other properties, but the specific difference is that properties in an array don't need to define a name. They //can// define a name, if required, and duplicate names are also allowed.+**Array** elements are very similar to [[#Chunk]] elements, in that they contain multiple other properties, but the specific difference is that properties in an array don't need to define a name. They //can// define a name, if required, and duplicate names are also allowed. Arrays are defined by using a starting square bracket (''[''), followed by 0 or more values, followed by a closing square bracket ('']'').
  
 Like [[#Chunk|Chunks]], Arrays can be nested, and [[#Chunk|Chunks]] can be also be used as elements in the array. Like [[#Chunk|Chunks]], Arrays can be nested, and [[#Chunk|Chunks]] can be also be used as elements in the array.
Line 82: Line 81:
 <code> <code>
  MyArray =  MyArray =
- {+ [
  "Value without a name"  "Value without a name"
  NamedElement = "This is an element with a name"  NamedElement = "This is an element with a name"
Line 94: Line 93:
  "And this is an unnamed array in an array!"  "And this is an unnamed array in an array!"
  ]  ]
- }+ ]
 </code> </code>