I’m looking for an open source GLSL parser preferably producing an abstract syntax tree.
What we found so far:
- glsl4idea: IntelliJ plugin. Too many dependencies on IntelliJ code, but language description for FLEX might be useful.
- glslang: Reference implementation of a GLSL compiler in C, by Khronos Group. Contains language description for Bison.
- fragbyte: GLSL to bytecode compiler based on ANTLR4. Uses AST for bytecode representation. Rule set possibly useful.
- antlr4_convert: Compiler based on ANTLR4, which converts between GLSL and HLSL.
Does anybody of you know of some others? Maybe integrated in graphics/game engines?