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

Add a complete working usage example to the documentation #2

Open
bjmc opened this issue Aug 21, 2023 · 1 comment
Open

Add a complete working usage example to the documentation #2

bjmc opened this issue Aug 21, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@bjmc
Copy link
Contributor

bjmc commented Aug 21, 2023

Hello, I'm new to Rust/Pest and I'm struggling a bit trying to figure out how to use this crate. I copy-pasted the example from the README and I'm getting a syntax error when running cargo test:

error: expected one of `(` or `<`, found `->`
  --> src/main.rs:24:21
   |
24 |   fn test_my_parser -> Result<(), Error> {
   |                     ^^ expected one of `(` or `<`

Do you have any minimal complete examples that show how to use pest-test to generate test cases to verify a pest PEG grammar? Thanks!

@jdidion
Copy link
Owner

jdidion commented Sep 26, 2023

Sorry you're having trouble getting it to work. Here is a repository that uses pest-test https://github.com/jdidion/pest-wdl. If you come up with a good minimal example, please submit a PR. Thanks!

@jdidion jdidion added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Sep 26, 2023
@jdidion jdidion changed the title Complete working usage example? Add a complete working usage example to the documentation Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants