File: jsonparse.cwl

package info (click to toggle)
texstudio 4.9.1%2Bds-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 110,128 kB
  • sloc: cpp: 111,264; xml: 18,668; ansic: 8,977; python: 357; javascript: 177; sh: 147; makefile: 52
file content (128 lines) | stat: -rw-r--r-- 6,753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# jsonparse package
# Matthew Bertucci 2025/08/27 for v1.6.6

\JSONParse{token variable%cmd}{JSON string}#d
\JSONParse[options%keyvals]{token variable%cmd}{JSON string}#d
\JSONParseFromFile{token variable%cmd}{JSON file%file}#d
\JSONParseFromFile[options%keyvals]{token variable%cmd}{JSON file%file}#d
\JSONParseKeys{token variable}{key%plain}
\JSONParseKeys[options%keyvals]{token variable}{key%plain}
\JSONParseFilter{token variable%cmd}{token variable}{key%plain}#d
\JSONParseValue{token variable}{key%plain}
\JSONParseValue[options%keyvals]{token variable}{key%plain}
\JSONParseExpandableValue{token variable}{key%plain}
\JSONParseArrayUse{token variable}{key%plain}{string}
\JSONParseArrayUse{token variable}{key%plain}[subkey]{string}
\JSONParseArrayUse[options%keyvals]{token variable}{key%plain}{string}
\JSONParseArrayUse[options%keyvals]{token variable}{key%plain}[subkey]{string}
\JSONParseArrayMapFunction{token variable}{key%plain}{command}
\JSONParseArrayMapFunction{token variable}{key%plain}[subkey]{command}
\JSONParseArrayMapFunction[options%keyvals]{token variable}{key%plain}{command}
\JSONParseArrayMapFunction[options%keyvals]{token variable}{key%plain}[subkey]{command}
\JSONParseArrayNewline
\JSONParseArrayIndex
\JSONParseArrayKey
\JSONParseArrayValue
\JSONParseArrayCount{token variable}{key%plain}
\JSONParseArrayCount[options%keyvals]{token variable}{key%plain}
\JSONParseArrayMapInline{token variable}{key%plain}{inline function}
\JSONParseArrayMapInline[options%keyvals]{token variable}{key%plain}{inline function}
\JSONParseSet{keyvals}

#keyvals:\usepackage/jsonparse#c,\JSONParseSet,\JSONParse,\JSONParseFromFile
debug
#endkeyvals

#keyvals:\JSONParseSet,\JSONParse,\JSONParseFromFile
externalize#true,false
externalize prefix=%<string%>
externalize file name=%<file name%>
separator/child=%<string%>
separator/array left=%<string%>
separator/array right=%<string%>
zero-based#true,false
keyword/true=%<string%>
keyword/false=%<string%>
keyword/null=%<string%>
#endkeyvals

#keyvals:\JSONParseSet,\JSONParseValue,\JSONParseArrayUse,\JSONParseArrayMapFunction
replace/backspace=%<string%>
replace/formfeed=%<string%>
replace/linefeed=%<string%>
replace/carriage return=%<string%>
replace/horizontal tab=%<string%>
validate numbers#true,false
skip structures#true,false
escape={%<list%>}
rescan#true,false
#endkeyvals

#keyvals:\JSONParseSet,\JSONParseValue,\JSONParseArrayMapFunction
code before=%<code%>
code after=%<code%>
#endkeyvals

#keyvals:\JSONParseKeys,\JSONParseValue,\JSONParseArrayCount,\JSONParseArrayMapInline
store in=%<token variable%>
global#true,false
#endkeyvals

# expl3 interface
\c_jsonparse_json_cctab#/%expl3
\g_jsonparse_entries_prop#/%expl3
\g_jsonparse_json_tl#/%expl3
\jsonparse_set_array_count:NN %<⟨tl var⟩ ⟨integer⟩%>#/%expl3
\jsonparse_set_filter:Nn %<⟨tl var⟩%> {%<⟨key⟩%>}#/%expl3
\jsonparse_gput_right_rescan:Nn %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_gput_right_rescan:Ne %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_gset_rescan:Nn %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_gset_rescan:Ne %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_if_num:nF {%<⟨string⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_if_num:nT {%<⟨string⟩%>} {%<⟨true code⟩%>}#/%expl3
\jsonparse_if_num:nTF {%<⟨string⟩%>} {%<⟨true code⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_if_num_p:n {%<⟨string⟩%>}#/%expl3
\jsonparse_if_num:VF %<⟨str var⟩%> {%<⟨false code⟩%>}#/%expl3
\jsonparse_if_num:VT %<⟨str var⟩%> {%<⟨true code⟩%>}#/%expl3
\jsonparse_if_num:VTF %<⟨str var⟩%> {%<⟨true code⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_if_num_p:V %<⟨str var⟩%>#/%expl3
\jsonparse_parse:e {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_parse:n {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_parse:o {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_set_parse_keys:NN %<⟨tl var⟩ ⟨str var⟩%>#/%expl3
\jsonparse_set_parse:Nn %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_set_parse:Ne %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_set_parse:No %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_gset_parse:Nn %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_gset_parse:Ne %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_gset_parse:No %<⟨tl var⟩%> {%<⟨JSON string⟩%>}#/%expl3
\jsonparse_put_right_rescan:Nn %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_put_right_rescan:Ne %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_rescan:n {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_rescan:e {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_set_rescan:Nn %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_set_rescan:Ne %<⟨tl var⟩%> {%<⟨JSON value⟩%>}#/%expl3
\jsonparse_unicode_convert_surrogate_pair:ee {%<⟨codepoint⟩%>} {%<⟨codepoint⟩%>}#/%expl3
\jsonparse_unicode_convert_surrogate_pair:nn {%<⟨codepoint⟩%>} {%<⟨codepoint⟩%>}#/%expl3
\jsonparse_unicode_if_high_surrogate:nTF {%<⟨codepoint⟩%>} {%<⟨true code⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_unicode_if_high_surrogate:nT {%<⟨codepoint⟩%>} {%<⟨true code⟩%>}#/%expl3
\jsonparse_unicode_if_high_surrogate:nF {%<⟨codepoint⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_unicode_if_high_surrogate_p:n {%<⟨codepoint⟩%>}#/%expl3
\jsonparse_unicode_if_low_surrogate:nTF {%<⟨codepoint⟩%>} {%<⟨true code⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_unicode_if_low_surrogate:nT {%<⟨codepoint⟩%>} {%<⟨true code⟩%>}#/%expl3
\jsonparse_unicode_if_low_surrogate:nF {%<⟨codepoint⟩%>} {%<⟨false code⟩%>}#/%expl3
\jsonparse_unicode_if_low_surrogate_p:n {%<⟨codepoint⟩%>}#/%expl3

# deprecated
\JSONParseArrayValues[options%keyvals]{token variable}{key%plain}[subkey]{string}#S
\JSONParseArrayValues[options%keyvals]{token variable}{key%plain}{string}#S
\JSONParseArrayValues{token variable}{key%plain}[subkey]{string}#S
\JSONParseArrayValues{token variable}{key%plain}{string}#S
\JSONParseArrayValuesMap[options%keyvals]{token variable}{key%plain}[subkey]{command}#S
\JSONParseArrayValuesMap[options%keyvals]{token variable}{key%plain}{command}#S
\JSONParseArrayValuesMap{token variable}{key%plain}[subkey]{command}#S
\JSONParseArrayValuesMap{token variable}{key%plain}{command}#S
\JSONParseSetArrayCount{token variable%cmd}{token variable}{key%plain}#Sd
\JSONParseSetKeys{token variable%cmd}{token variable}{key%plain}#Sd
\JSONParseSetRescanValue{token variable%cmd}{token variable}{key%plain}#Sd
\JSONParseSetValue{token variable%cmd}{token variable}{key%plain}#Sd