LuisAyuso / glsl

GLSL450 parser for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLL 450 parser

Build Status crates.io

This is a GLSL450 parser which aims is to parse a GLSL450-formatted source into an in-memory representation (AST). It strictly follows the grammar rules defined in the official GLSL 450 specifications.

Currently, the parser expects the input source to be &[u8], which provides a pretty poor experience in error reporting. This is a serious issue and is being worked on.

Hacking and contributing

If you wished to contribute, feel free to have a look at the open issues and submit a PR.

On a general note, if no issue interests you, you can open the parser.rs file and look for a parser function which is annotated with documentation but private (no pub yet). If you find such a function, you can :

  1. add the pub keyword to make the parser available;
  2. add a set of tests in the tests/ folder.

The later point is actually mandatory as the crate won’t make it to its initial release untill all parsers that must be public have their associated tests.

About

GLSL450 parser for Rust


Languages

Language:Rust 99.9%Language:GLSL 0.1%