MCPcopy Create free account
hub / github.com/ShaderFrog/glsl-parser / parse

Function parse

src/preprocessor/preprocessor.test.ts:17–17  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

15const grammar = fileContents('./src/preprocessor/preprocessor-grammar.pegjs');
16const parser = peggy.generate(grammar, { cache: true });
17const parse = (src: string) => parser.parse(src) as PreprocessorProgram;
18
19const debugProgram = (program: string): void => {
20 debugAst(parse(program));

Callers 4

parseSrcFunction · 0.85
debugProgramFunction · 0.85
expectParsedProgramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected