senselogic-gson 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,11 +6,12 @@ Granular Structured Object Notation.
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
GSON is a superset of JSON with:
|
|
10
|
+
* Multiline strings.
|
|
11
|
+
* File inclusions.
|
|
12
|
+
* UUID and TUID generation.
|
|
13
|
+
* Customizable commands.
|
|
14
|
+
* Ultra fast parsing based on obscure Unicode characters.
|
|
14
15
|
|
|
15
16
|
## Sample
|
|
16
17
|
|
|
@@ -89,7 +90,9 @@ Granular Structured Object Notation.
|
|
|
89
90
|
|
|
90
91
|
## Syntax
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
Any JSON file is also a GSON file, since GSON is a superset of JSON.
|
|
94
|
+
|
|
95
|
+
Multiline strings are enclosed by `‴` characters, and use the `‗` character to represent a non-trimmable space:
|
|
93
96
|
```
|
|
94
97
|
‴first line
|
|
95
98
|
second line
|
|
@@ -98,15 +101,16 @@ third line ‗
|
|
|
98
101
|
fifth line‴
|
|
99
102
|
```
|
|
100
103
|
|
|
101
|
-
Command strings are also enclosed
|
|
104
|
+
Command strings are also enclosed by `‴` characters, but start with a `‼` character:
|
|
102
105
|
* `‴‼#id‴` generates an MD5-based UUID.
|
|
103
106
|
* `‴‼%id‴` generates an MD5-based TUID.
|
|
104
107
|
* `‴‼@path/to/file.gson‴` includes the contents of another GSON file.
|
|
105
108
|
|
|
106
109
|
## Limitations
|
|
107
110
|
|
|
108
|
-
|
|
109
|
-
*
|
|
111
|
+
When used as literal text:
|
|
112
|
+
* The `‴` character must be escaped in string literals.
|
|
113
|
+
* The `‼` and `‗` characters must be escaped in multiline string literals.
|
|
110
114
|
|
|
111
115
|
## Version
|
|
112
116
|
|