glslify / glsl-tokenizer

r/w stream of glsl tokens
MIT License
51 stars 6 forks source link

String tokenizing expects 'eof' #15

Open AndrewRayCode opened 5 years ago

AndrewRayCode commented 5 years ago

Parsing a string sync results in a token stream that's expecting eof, which is only added in the streaming API.

I don't think eof should be a token, since it's not in the glsl spec? https://www.khronos.org/files/opengles_shading_language.pdf