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

Method parseAdditive

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

Source from the content-addressed store, hash-verified

138 }
139
140 private parseAdditive(): ExprNode {
141 let left = this.parseMultiplicative();
142 while (true) {
143 this.skipWhitespace();
144 const ch = this.peek();
145 if (ch !== "+" && ch !== "-") break;
146 this.pos++;
147 const right = this.parseMultiplicative();
148 left = { kind: "binary", op: ch as BinaryOp, left, right };
149 }
150 return left;
151 }
152
153 private parseMultiplicative(): ExprNode {
154 let left = this.parseUnary();

Callers 1

parseCompareMethod · 0.95

Calls 3

parseMultiplicativeMethod · 0.95
skipWhitespaceMethod · 0.95
peekMethod · 0.95

Tested by

no test coverage detected