haxe-glsl-parser icon indicating copy to clipboard operation
haxe-glsl-parser copied to clipboard

GLSL ES 1.0 parser in Haxe

trafficstars

Cross Platform GLSL ES 1.0 Parser

Parses GLSL version 1.00 (the version used in webgl) using the reference language grammar.

Parser based on LALR parser from The Lemon Parser Generator

Supports all platforms available to the haxe compiler (notably JavaScript, Java, C++ and Python)

Demo

Project Status

Complete

  • Parser
  • Printer: pretty and compact
  • Preprocessor

In progress

  • Evaluator
  • Validator
  • Optimizer
  • Minifier

Feel free to contact me at [email protected] if you have any questions


Rebuilding the parser after grammar changes

A fork of lemon is used to generate the haxe parser. The parser generator automatically copies the output into the core code - all you need to do is navigate to tools/parser-generator/ and execute run.sh