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

Function parseAdd

demo/parser.js:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 function* parseAdd() {
44
45 let node = yield * parseMultiply();
46
47 while ((yield * peek()).type === "+") {
48
49 yield * eat();
50 let right = yield * parseMultiply()
51 node = { type: "+", left: node, right, value: node.value + right.value };
52 }
53
54 return node;
55 }
56
57 function* parseMultiply() {
58

Callers 1

startFunction · 0.85

Calls 3

parseMultiplyFunction · 0.85
peekFunction · 0.85
eatFunction · 0.85

Tested by

no test coverage detected