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

Potential grammar or dependency issue #1

Closed
rokf opened this issue Oct 27, 2024 · 1 comment
Closed

Potential grammar or dependency issue #1

rokf opened this issue Oct 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rokf
Copy link
Owner

rokf commented Oct 27, 2024

While working on a new library where I tried to use Redka as a database for the usage example I got the following error - error: grammar error in :s, unknown rule.

The example is using janet-redka, which depends on janet-resp (this).

This is weird since :s is a built-in PEG pattern - https://janet-lang.org/docs/peg.html.

Investigate what's going on and apply a fix if needed.

The Redka example in this repository works fine.

@rokf rokf added the bug Something isn't working label Oct 27, 2024
@rokf
Copy link
Owner Author

rokf commented Oct 27, 2024

Found the issue. I didn't compile the peg before passing it into the match function. Because of that this happened - janet-lang/janet#1180.

Compiling it fixes the issue. I'll push up a new "version" of janet-resp where this is fixed.

@rokf rokf closed this as completed in 539dc33 Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant