3 releases

0.1.2 Sep 8, 2018
0.1.1 Jun 26, 2018
0.1.0 Jun 20, 2018

#50 in Rendering

Download history 6/week @ 2020-03-16 54/week @ 2020-03-23 30/week @ 2020-03-30 61/week @ 2020-04-06 15/week @ 2020-04-13 8/week @ 2020-04-27 4/week @ 2020-05-04 21/week @ 2020-05-11 33/week @ 2020-05-18 19/week @ 2020-05-25 15/week @ 2020-06-01 3/week @ 2020-06-08 6/week @ 2020-06-15 12/week @ 2020-06-29

69 downloads per month

MIT license

51KB
1.5K SLoC

xshade-parser

Parser and untyped AST for the xshade language.

Join us on gitter.

Introduction

xshade is a functional shading language targeting SPIR-V. From there SPIR-V tools by khronos can be used to generate glsl or hlsl. This repository contains the parser and resulting abstract syntax tree for xshade.

Cargo

To use this library, just add it to your Cargo.toml file:

[dependencies]
xshade_parser = "0.1"

Usage

extern crate xshade_parser;

fn main() {
    let program = "...";
    let result = xshade_parser::parse_str(program);

    match result {
        Ok(ast) => println!("{:#?}", ast),
        Err(error) => println!("{:#?}", error),
    }
}

Getting Help or Contributing

For now, please contact Marc or Andy if you need help or want to contribute. We plan to tag some issues with "help wanted" in the future.

Code of Conduct

We are comitted to provide a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.

We employ the Rust Code of Conduct where applicable.

Licence

MIT - If you require this project to be available under a different licence, please open an Issue so we can consider adopting it.

Dependencies

~1.6–2.2MB
~49K SLoC