sivadeilra / racc Goto Github PK
View Code? Open in Web Editor NEWA port of the Berkeley YACC parser-generator to Rust
License: MIT License
A port of the Berkeley YACC parser-generator to Rust
License: MIT License
See https://github.com/cmr/rust-cc/blob/master/Cargo.toml for example. and http://crates.io/crates/cc (the links at the bottom, the keywords, etc).
What is the current status of this project? I see it on crates.io, but there's no documentation or examples so I don't know how to use it.
src/reader.rs:622:39: 622:47 error: no method named as_str
found for type syntax::ast::Ident
in the current scope
src/reader.rs:622 let name_def_str = id.as_str();
^~~~~~~~
src/reader.rs:666:62: 666:70 error: no method named as_str
found for type syntax::ast::Ident
in the current scope
src/reader.rs:666 let rhs_name = rhs_ident.as_str();
^~~~~~~~
error: aborting due to 2 previous errors
Could not compile racc
.
Hi,
I use rustc 1.2.0-nightly (fbb13543f 2015-06-11).
there are several build errors in src/output.rs and src/reader.rs, e.g.:
src/reader.rs:623:44: 623:48 help: add #![feature(rustc_private)] to the crate attributes to enable
src/reader.rs:626:24: 626:30 error: use of unstable library feature 'rustc_private'
...
src/output.rs:249:44: 249:54 help: add #![feature(convert)] to the crate attributes to enable
src/output.rs:252:33: 252:40 error: use of unstable library feature 'rustc_private'
i updated src/lib.rs and added:
#![feature(rustc_private)]
#![feature(convert)]
#![feature(collections)]
and still get the following error, can you fix it @sivadeilra @brandonchinn178?
src/bin/testg.rs:26:1: 26:8 error: macro undefined: 'grammar!'
src/bin/testg.rs:26 grammar! {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.