Python wrapper around glsl-parser
Project description
Python wrapper around glsl-parser.
Quick start
>>> from pyglsl_parser import parse >>> ast = parse('void main();') >>> print(ast.functions) Output: [void main();]
Take a look at example.py for a slightly longer example.
License
MIT License (MIT), same as glsl-parser.
Implementation
The glsl-parser code is wrapped via Cython in pyglsl_parser/parser.pyx. Some Python enums are automatically generated from a C header with gen_enums.py.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyglsl_parser-0.6.1.tar.gz
(62.0 kB
view hashes)