Skip to content

Instantly share code, notes, and snippets.

@DmitrySoshnikov
Created June 15, 2017 21:48
Show Gist options
  • Save DmitrySoshnikov/9641c80293415bab1a20fcf8ac5775c7 to your computer and use it in GitHub Desktop.
Save DmitrySoshnikov/9641c80293415bab1a20fcf8ac5775c7 to your computer and use it in GitHub Desktop.
extern crate syntax;
use syntax::Parser;
fn main() {
let mut parser = Parser::new();
let result = parser.parse("2 + 2 * 2");
println!("{:?}", result); // 6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment