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

Function fileContents

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

Source from the content-addressed store, hash-verified

10import { GlslSyntaxError } from '../error.js';
11
12const fileContents = (filePath: string): string =>
13 fs.readFileSync(filePath).toString();
14
15const grammar = fileContents('./src/preprocessor/preprocessor-grammar.pegjs');
16const parser = peggy.generate(grammar, { cache: true });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected