UNPKG

simc-ast-builder

Version:

Parser and AST generator for SimulationCraft files

14 lines 512 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleCommentLine = handleCommentLine; function handleCommentLine(ctx, visitor) { // Extract the comment text from the context const commentToken = ctx.COMMENT(); const commentText = commentToken ? commentToken.text : ""; // Create and return a comment line node return { comment: commentText.replace(/^#\s*/, ""), kind: "commentLine", }; } //# sourceMappingURL=CommentLineHandler.js.map