compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Added GLSL parser

Open decioferreira opened this issue 5 years ago • 2 comments

An initial implementation for the WebGL Shader (GLSL) parser.

decioferreira avatar Aug 15 '20 08:08 decioferreira

Looks good so far! Please let's add one more example to ParserTest with a correct GLSL program (can be very simple but probably should use the varyings etc. that change the type of the shader).

I'm curious to see how the shader type turns out! Don't hesitate to ask on Discord if you want help with generating the type equations :)

(Type inference tests will be the most interesting and important part here I believe.)

Janiczek avatar Aug 15 '20 11:08 Janiczek

added two more examples to the shader parser tests, based of https://github.com/elm-explorations/webgl/blob/81527c23ba21d9bf92f34151a6a4c40a68460e1f/examples/Triangle.elm#L77-L105

decioferreira avatar Aug 15 '20 13:08 decioferreira