mirror of
https://github.com/ToyB-Chan/mini-file-format.git
synced 2026-05-14 10:21:16 +02:00
Update README.md
This commit is contained in:
@@ -57,10 +57,11 @@ The format supports the following data types:
|
|||||||
- Arrays may only contain one datatype at a time.
|
- Arrays may only contain one datatype at a time.
|
||||||
- Arrays may be of any positive dimension.
|
- Arrays may be of any positive dimension.
|
||||||
- Arrays may be of any positive length.
|
- Arrays may be of any positive length.
|
||||||
|
- Arrays must be consistent in length within each dimension.
|
||||||
- Arrays may be empty.
|
- Arrays may be empty.
|
||||||
- Example: `array = [5, 6, 10]`
|
- Example: `array = [5, 6, 10]`
|
||||||
- Example: `array2d = [[5, 8], [9, 7], [23, 47]]`
|
- Example: `array2d = [[5, 8], [9, 7], [23, 47]]`
|
||||||
- Example: `array2d = [[9], [50, 3], [54, 12, 46, 37]]`
|
- Example: `array3d = [[[5, 8], [9, 7], [8, 1]], [[9, 1], [1, 4], [7, 6]]]`
|
||||||
- Example: `emptyArray = []`
|
- Example: `emptyArray = []`
|
||||||
|
|
||||||
### Boolean
|
### Boolean
|
||||||
@@ -110,6 +111,7 @@ my-value = 5 | Invalid character in key.
|
|||||||
|
|
||||||
[MyOtherSection.Subsection] | "MyOtherSection" has not been defined before.
|
[MyOtherSection.Subsection] | "MyOtherSection" has not been defined before.
|
||||||
myValue = 16 # a comment | Inline comments are not allowed.
|
myValue = 16 # a comment | Inline comments are not allowed.
|
||||||
|
`array2d = [[9], [50, 3]]` | Lengths of the arrays in the same dimension don't match.
|
||||||
|
|
||||||
[MyOtherSection]
|
[MyOtherSection]
|
||||||
myArray = [ | Values may not span over multiple lines.
|
myArray = [ | Values may not span over multiple lines.
|
||||||
|
|||||||
Reference in New Issue
Block a user