MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / parse_block

Function parse_block

js/SCAST.js:275–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 return { type: "top", 'body': prog };
274 }
275 function parse_block() {
276 var poi={line:input.peek().poi.line,start:input.peek().poi.start}
277 var body = [];
278 skip_punc("{");
279 while (!is_punc("}")) {
280 var sts = parse_statement()
281 sts && body.push(sts);
282 }
283 skip_punc("}");
284 return {
285 type: "BlockStatement",
286 body: body,
287 poi:poi
288 }
289 }
290 function parse_arguments() {
291 var r={
292 type: "Arguments",

Callers 8

parse_argFunction · 0.70
parse_defineFunction · 0.70
parse_loopFunction · 0.70
parse_ifFunction · 0.70
parse_variableFunction · 0.70
parse_idFunction · 0.70
parse_newFunction · 0.70
parse_expressionFunction · 0.70

Calls 3

skip_puncFunction · 0.70
is_puncFunction · 0.70
parse_statementFunction · 0.70

Tested by

no test coverage detected