├── .gitignore ├── EXAMPLE_ERRORS.md ├── LICENSE ├── Makefile ├── README.md ├── ast.cpp ├── ast.h ├── lexemes.h ├── lexer.cpp ├── lexer.h ├── main.cpp ├── parser.cpp ├── parser.h ├── test.py ├── tests ├── arrays.glsl ├── arrays.test ├── booleans.glsl ├── booleans.test ├── builtin_types.glsl ├── builtin_types.test ├── comments.glsl ├── comments.test ├── constants.glsl ├── constants.test ├── continuations.glsl ├── continuations.test ├── directives.glsl ├── directives.test ├── do_statement.glsl ├── do_statement.test ├── first_character_invalid.glsl ├── first_character_invalid.test ├── floating_point_literals.glsl ├── floating_point_literals.test ├── for_statement.glsl ├── for_statement.test ├── integer_literals.glsl ├── integer_literals.test ├── interface_blocks.glsl ├── interface_blocks.test ├── sequence.glsl ├── sequence.test ├── structures.glsl ├── structures.test ├── switch.glsl ├── switch.test ├── ternary.glsl ├── ternary.test ├── uniforms.glsl ├── uniforms.test ├── while_statement.glsl └── while_statement.test ├── util.cpp └── util.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.P 3 | /glsl-parser 4 | -------------------------------------------------------------------------------- /EXAMPLE_ERRORS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/EXAMPLE_ERRORS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/README.md -------------------------------------------------------------------------------- /ast.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/ast.cpp -------------------------------------------------------------------------------- /ast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/ast.h -------------------------------------------------------------------------------- /lexemes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/lexemes.h -------------------------------------------------------------------------------- /lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/lexer.cpp -------------------------------------------------------------------------------- /lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/lexer.h -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/main.cpp -------------------------------------------------------------------------------- /parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/parser.cpp -------------------------------------------------------------------------------- /parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/parser.h -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/test.py -------------------------------------------------------------------------------- /tests/arrays.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/arrays.glsl -------------------------------------------------------------------------------- /tests/arrays.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/arrays.test -------------------------------------------------------------------------------- /tests/booleans.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/booleans.glsl -------------------------------------------------------------------------------- /tests/booleans.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/booleans.test -------------------------------------------------------------------------------- /tests/builtin_types.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/builtin_types.glsl -------------------------------------------------------------------------------- /tests/builtin_types.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/builtin_types.test -------------------------------------------------------------------------------- /tests/comments.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/comments.glsl -------------------------------------------------------------------------------- /tests/comments.test: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/constants.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/constants.glsl -------------------------------------------------------------------------------- /tests/constants.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/constants.test -------------------------------------------------------------------------------- /tests/continuations.glsl: -------------------------------------------------------------------------------- 1 | mat4 model, view, projection; 2 | struct foo { float x; } a, b, c, d; 3 | -------------------------------------------------------------------------------- /tests/continuations.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/continuations.test -------------------------------------------------------------------------------- /tests/directives.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/directives.glsl -------------------------------------------------------------------------------- /tests/directives.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/directives.test -------------------------------------------------------------------------------- /tests/do_statement.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/do_statement.glsl -------------------------------------------------------------------------------- /tests/do_statement.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/do_statement.test -------------------------------------------------------------------------------- /tests/first_character_invalid.glsl: -------------------------------------------------------------------------------- 1 | ` 2 | -------------------------------------------------------------------------------- /tests/first_character_invalid.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/first_character_invalid.test -------------------------------------------------------------------------------- /tests/floating_point_literals.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/floating_point_literals.glsl -------------------------------------------------------------------------------- /tests/floating_point_literals.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/floating_point_literals.test -------------------------------------------------------------------------------- /tests/for_statement.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/for_statement.glsl -------------------------------------------------------------------------------- /tests/for_statement.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/for_statement.test -------------------------------------------------------------------------------- /tests/integer_literals.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/integer_literals.glsl -------------------------------------------------------------------------------- /tests/integer_literals.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/integer_literals.test -------------------------------------------------------------------------------- /tests/interface_blocks.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/interface_blocks.glsl -------------------------------------------------------------------------------- /tests/interface_blocks.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/interface_blocks.test -------------------------------------------------------------------------------- /tests/sequence.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/sequence.glsl -------------------------------------------------------------------------------- /tests/sequence.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/sequence.test -------------------------------------------------------------------------------- /tests/structures.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/structures.glsl -------------------------------------------------------------------------------- /tests/structures.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/structures.test -------------------------------------------------------------------------------- /tests/switch.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/switch.glsl -------------------------------------------------------------------------------- /tests/switch.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/switch.test -------------------------------------------------------------------------------- /tests/ternary.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/ternary.glsl -------------------------------------------------------------------------------- /tests/ternary.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/ternary.test -------------------------------------------------------------------------------- /tests/uniforms.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/uniforms.glsl -------------------------------------------------------------------------------- /tests/uniforms.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/uniforms.test -------------------------------------------------------------------------------- /tests/while_statement.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/while_statement.glsl -------------------------------------------------------------------------------- /tests/while_statement.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/tests/while_statement.test -------------------------------------------------------------------------------- /util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/util.cpp -------------------------------------------------------------------------------- /util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphitemaster/glsl-parser/HEAD/util.h --------------------------------------------------------------------------------