UNPKG

@shaderfrog/glsl-parser

Version:

A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments

17 lines (16 loc) 674 B
import { AstNode, Program } from '../ast/index.js'; import { Parse, ParserOptions } from './parser.js'; export declare const inspect: (arg: any) => void; export declare const nextWarn: () => () => any; export declare const buildParser: () => { parse: Parse; parser: any; parseSrc: ParseSrc; debugSrc: (src: string) => void; debugStatement: (stmt: AstNode) => void; expectParsedStatement: (src: string, options?: {}) => void; parseStatement: (src: string, options?: ParserOptions) => Program; expectParsedProgram: (src: string, options?: ParserOptions) => void; }; type ParseSrc = (src: string, options?: ParserOptions) => Program; export {};