stackgl / glsl-parser

transform streamed glsl tokens into an ast
MIT License
98 stars 15 forks source link

Builtin declaration #19

Closed dy closed 6 years ago

dy commented 6 years ago

This fixes #18, #15, #16, #14 Turns out that initial fixture parses builtin (re)declaration as broken AST declaration node. This PR enables identifier names to be the same as builtins:

float distance = 1., sign = -1.;
dy commented 6 years ago

@mikkoh @substack @chrisdickinson @yoshuawuyts @thibauts @mattdesl @mikolalysenko @hughsk @gregtatum @rezaali hey guys I've just released the 2.0.1 patch, but I don't have a permission to publish that to npm. Could you please somebody add me as npm owner add dfcreative glsl-parser? Thanks!

hughsk commented 6 years ago

@dy done! Thanks very much for the patch :)