MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / parseMultiplication

Function parseMultiplication

src/core/dsl/parser.ts:126–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 function parseMultiplication(): ASTNode {
127 enter();
128 try {
129 let left = parsePipe();
130 while (peek().type === TokenType.STAR || peek().type === TokenType.SLASH) {
131 const op = advance().value;
132 const right = parsePipe();
133 left = { type: 'binary', op, left, right };
134 }
135 return left;
136 } finally { exit(); }
137 }
138
139 function parsePipe(): ASTNode {
140 enter();

Callers 1

parseAdditionFunction · 0.85

Calls 5

enterFunction · 0.85
parsePipeFunction · 0.85
peekFunction · 0.85
advanceFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected