Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared crate or module parce_macros #1

Open
kristiannotari opened this issue Jul 18, 2021 · 1 comment
Open

error: use of undeclared crate or module parce_macros #1

kristiannotari opened this issue Jul 18, 2021 · 1 comment

Comments

@kristiannotari
Copy link

While trying to use your crate I get an error on the lexer macro.

error[E0433]: failed to resolve: use of undeclared crate or module `parce_macros`
 --> src\main.rs:3:1
  |
3 | #[lexer(BasicLexer)]
  | ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parce_macros`
  |
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

I only copy/pasted the example in your doc in a new binary project main.rs file:

use parce::prelude::*;

#[lexer(BasicLexer)]
enum BasicLexemes {
    A = "'a'",
    B = 'b',
    HelloWorld = " 'Hello World!' "
}

fn main() {
    assert!(BasicLexer::default().lex("aHello World!b").is_ok());
}

Using rust (stable): 1.53.0

@JoelCourtney
Copy link
Owner

Yikes, that's embarrassing. Thanks for pointing it out. I'll fix that and add a disclaimer that this project is incomplete. Sorry to lead you on :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants