-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hey, I'm getting this error when trying to combine my own parser using any of the macros, do you have any ideas on maybe I'm doing incorrectly?
#[phase(plugin)]
extern crate peruse;
extern crate peruse;
use self::peruse::parsers::literal;
fn mm() {
let dddd = or!(literal(A), literal(B));
}
The full error I get from trying to compile this:
badamson@406c8f2a3866 ~/D/r/myproject-rs> cargo build --verbose
Fresh peruse v0.1.0 (https://github.com/DanSimon/peruse.git#5915d6fa)
Compiling myproject-rs v0.0.1 (file:///Users/badamson/Documents/rust/myproject-rs)
Running `rustc /Users/badamson/Documents/rust/myproject-rs/src/main.rs --crate-name myproject-rs --crate-type bin -g --out-dir /Users/badamson/Documents/rust/myproject-rs/target --dep-info /Users/badamson/Documents/rust/myproject-rs/target/.fingerprint/myproject-rs-030fbdb89d7c4fb3/dep-bin-myproject-rs -L /Users/badamson/Documents/rust/myproject-rs/target -L /Users/badamson/Documents/rust/myproject-rs/target/deps --extern peruse=/Users/badamson/Documents/rust/myproject-rs/target/deps/libperuse-1cb3ff65831a86b2.rlib`
<peruse macros>:3:5: 3:13 error: `OrParser` does not name a structure
<peruse macros>:3 OrParser{
^~~~~~~~
<peruse macros>:1:1: 18:2 note: in expansion of or!
/Users/badamson/Documents/rust/myproject-rs/src/lexer/lexer.rs:43:13: 43:41 note: expansion site
error: aborting due to previous error
Could not compile `myproject-rs`.
Caused by:
Process didn't exit successfully: `rustc /Users/badamson/Documents/rust/myproject-rs/src/main.rs --crate-name myproject-rs --crate-type bin -g --out-dir /Users/badamson/Documents/rust/myproject-rs/target --dep-info /Users/badamson/Documents/rust/myproject-rs/target/.fingerprint/myproject-rs-030fbdb89d7c4fb3/dep-bin-myproject-rs -L /Users/badamson/Documents/rust/myproject-rs/target -L /Users/badamson/Documents/rust/myproject-rs/target/deps --extern peruse=/Users/badamson/Documents/rust/myproject-rs/target/deps/libperuse-1cb3ff65831a86b2.rlib` (status=101)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels