Skip to main content

Python wrapper around glsl-parser

Project description

# pyglsl_parser

Python wrapper around [glsl-parser](https://github.com/graphitemaster/glsl-parser)

## Quick start

`python from pyglsl_parser import parse ast = parse('void main();') print(ast.functions) # Output: [void main();] `

Try [example.py](example.py) to see it run.

## License

MIT License (MIT), same as glsl-parser.

## Implementation

The glsl-parser code is wrapped via Cython in [pyglsl_parser/parser.pyx](pyglsl_parser/parser.pyx). Some Python enums are automatically generated from a C header with [gen_enums.py](gen_enums.py).

Project details


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.0.tar.gz (61.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page