From f333471ec3d8a5115c0099dbff2e2ba6fdce3163 Mon Sep 17 00:00:00 2001 From: John Drouhard Date: Sat, 8 Feb 2025 10:46:39 -0600 Subject: [PATCH] export helper functions for reuse in cpp grammar --- grammar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/grammar.js b/grammar.js index d1df76a..7cdde6e 100644 --- a/grammar.js +++ b/grammar.js @@ -1369,8 +1369,6 @@ module.exports = grammar({ }, }); -module.exports.PREC = PREC; - /** * * @param {string} suffix @@ -1468,3 +1466,9 @@ function commaSep(rule) { function commaSep1(rule) { return seq(rule, repeat(seq(',', rule))); } + +module.exports.PREC = PREC; +module.exports.preprocIf = preprocIf; +module.exports.preprocessor = preprocessor; +module.exports.commaSep = commaSep; +module.exports.commaSep1 = commaSep1;