MCPcopy
hub / github.com/pugjs/pug / parse

Function parse

packages/pug-parser/index.js:10–14  ·  view source on GitHub ↗
(tokens, options)

Source from the content-addressed store, hash-verified

8module.exports = parse;
9module.exports.Parser = Parser;
10function parse(tokens, options) {
11 var parser = new Parser(tokens, options);
12 var ast = parser.parse();
13 return JSON.parse(JSON.stringify(ast));
14}
15
16/**
17 * Initialize `Parser` with the given input `str` and `filename`.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…