MCPcopy Index your code
hub / github.com/tc39/proposal-observable / parseMultiply

Function parseMultiply

demo/parser.js:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 function* parseMultiply() {
58
59 let node = yield * eat("NUMBER");
60
61 while ((yield * peek()).type === "*") {
62
63 yield * eat();
64 let right = yield * eat("NUMBER");
65 node = { type: "*", left: node, right, value: node.value * right.value };
66 }
67
68 return node;
69 }
70
71 function* start() {
72

Callers 1

parseAddFunction · 0.85

Calls 2

eatFunction · 0.85
peekFunction · 0.85

Tested by

no test coverage detected