haxiomic / haxe-glsl-parser

GLSL ES 1.0 parser in Haxe
MIT License
26 stars 7 forks source link
glsl haxe parser

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

In progress

Feel free to contact me at haxiomic@gmail.com 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