polar-shader-0.1.0.0: High-level shader compiler for Polar Game Engine
Polar.Shader.Parser
parse :: [Token] -> Either String (Map String Function) Source
parseFunction :: [Token] -> Either String (Function, [Token]) Source
parseStatements :: [Token] -> Either String ([AST], [Token]) Source
parseStatement :: [Token] -> Either String (AST, [Token]) Source
parseLet :: [Token] -> Either String (AST, [Token]) Source
parseAST :: [Token] -> Either String (AST, [Token]) Source
parseAssignment :: [Token] -> Either String (AST, [Token]) Source
parseAdditive :: [Token] -> Either String (AST, [Token]) Source
parseMultiplicative :: [Token] -> Either String (AST, [Token]) Source
parseSwizzle :: [Token] -> Either String (AST, [Token]) Source
parsePrimary :: [Token] -> Either String (AST, [Token]) Source