Crates.io | xshade-parser |
lib.rs | xshade-parser |
version | 0.1.2 |
source | src |
created_at | 2018-06-20 20:42:21.228981 |
updated_at | 2018-09-08 15:46:58.371591 |
description | Parser and untyped AST for the xshade language. |
homepage | |
repository | https://github.com/xshade-lang/xshade-parser |
max_upload_size | |
id | 71003 |
size | 53,524 |
Parser and untyped AST for the xshade language.
Join us on gitter.
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.
To use this library, just add it to your Cargo.toml file:
[dependencies]
xshade_parser = "0.1"
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),
}
}
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.
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.
MIT - If you require this project to be available under a different licence, please open an Issue so we can consider adopting it.