MCPcopy
hub / github.com/Linen-dev/linen.dev / parse

Function parse

packages/ast/parse/linen/index.js:14–21  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

12// 5th step normalizes tokens
13
14function parse(input) {
15 let tokens;
16 tokens = tokenize(input);
17 tokens = listify(tokens);
18 tokens = expand(tokens);
19 tokens = linkify(tokens);
20 return tokens.map(normalize);
21}
22
23module.exports = function (input) {
24 return { type: 'root', source: input, children: parse(input) };

Callers 9

index.jsFile · 0.70
index.spec.jsFile · 0.70
index.jsFile · 0.50
index.spec.jsFile · 0.50
index.jsFile · 0.50
expandFunction · 0.50
testFunction · 0.50
index.jsFile · 0.50
index.spec.jsFile · 0.50

Calls 3

expandFunction · 0.85
mapMethod · 0.80
tokenizeFunction · 0.50

Tested by 1

testFunction · 0.40