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