@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
24 lines (23 loc) • 657 B
JavaScript
import { parsePrimary } from "./parse-primary.js";
export function parsePostfix(ctx) {
let node = parsePrimary(ctx);
while (true) {
if (ctx.plugins) {
let handled = false;
for (const plugin of ctx.plugins) {
if (plugin.parsePostfix) {
const result = plugin.parsePostfix(ctx, node);
if (result) {
node = result;
handled = true;
break;
}
}
}
if (handled)
continue;
}
break;
}
return node;
}