MCPcopy
hub / github.com/braziljs/eloquente-javascript / parse

Function parse

src/pseudo_json.mjs:29–35  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

27}
28
29export function parse(str) {
30 let stream = new Stream(str)
31 stream.space()
32 let value = parseValue(stream)
33 if (stream.pos != stream.str.length) stream.err("Extra characters at end of input")
34 return value
35}
36
37function parseValue(stream) {
38 let next = stream.next

Callers 4

varify.mjsFile · 0.85
preprocessFunction · 0.85
findDepsFunction · 0.85
12_3_comments.jsFile · 0.85

Calls 3

spaceMethod · 0.95
errMethod · 0.95
parseValueFunction · 0.85

Tested by

no test coverage detected