Open AndrewRayCode opened 10 years ago
This is what I really want to play with. Right now I've made a small local modification
//Parse into AST if (result) { this.parser.parse(state); return state; }
And my own outside-parser utility function does this:
state = glsl.parse( source, options ); if ( state.errors.length ) { throw state.errors[ 0 ]; } return new glsl.ast.GlslProgram( state.ast );
And I added this for convenience:
glsl.ast.GlslProgram = function( units ) { this.translation_unit = units; };
But these are only applicable to my project, not sure how you'd want to expose the AST in the parser codebase.
Is this still an issue?
This is what I really want to play with. Right now I've made a small local modification
And my own outside-parser utility function does this:
And I added this for convenience:
But these are only applicable to my project, not sure how you'd want to expose the AST in the parser codebase.