MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / pp

Function pp

tools/tree-sitter-pascal/grammar.js:118–135  ·  view source on GitHub ↗
($, ...rule)

Source from the content-addressed store, hash-verified

116// errors that TreeSitter can recover from automatically, it is better not to
117// use it.
118function pp($, ...rule) {
119 if (!use_pp)
120 return seq(...rule);
121 return (
122 choice(
123 seq(...rule),
124 seq(
125 alias(/\{\$if[^}]*\}/i, $.pp),
126 ...rule,
127 repeat(seq(
128 alias(/\{\$else[^}]*\}/i, $.pp),
129 ...rule
130 )),
131 alias(/\{\$end[^}]*\}/i, $.pp)
132 ),
133 )
134 );
135}
136
137// tr = Trailing
138// Return the trailing equivalent of a rule, aliased to the non-trailing version.

Callers 1

grammar.jsFile · 0.85

Calls 1

choiceFunction · 0.85

Tested by

no test coverage detected