MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / parseArr

Function parseArr

src/pseudo_json.mjs:60–70  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

58}
59
60function parseArr(stream) {
61 stream.ahead(1)
62 let arr = []
63 for (;;) {
64 if (stream.next == 93) break
65 arr.push(parseValue(stream))
66 if (stream.next == 44) stream.ahead(1)
67 }
68 stream.ahead(1)
69 return arr
70}
71
72function parseStr(stream) {
73 let start = stream.pos

Callers 1

parseValueFunction · 0.85

Calls 2

parseValueFunction · 0.85
aheadMethod · 0.80

Tested by

no test coverage detected