MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseMultiplicative

Method parseMultiplicative

packages/core/src/constraints/parser.ts:153–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 private parseMultiplicative(): ExprNode {
154 let left = this.parseUnary();
155 while (true) {
156 this.skipWhitespace();
157 const ch = this.peek();
158 if (ch !== "*" && ch !== "/") break;
159 this.pos++;
160 const right = this.parseUnary();
161 left = { kind: "binary", op: ch as BinaryOp, left, right };
162 }
163 return left;
164 }
165
166 private parseUnary(): ExprNode {
167 this.skipWhitespace();

Callers 1

parseAdditiveMethod · 0.95

Calls 3

parseUnaryMethod · 0.95
skipWhitespaceMethod · 0.95
peekMethod · 0.95

Tested by

no test coverage detected