-
Notifications
You must be signed in to change notification settings - Fork 228
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
Output is just a nested array of characters #645
Comments
This is by design. Each character is being treated as its own "token," so you basically have an array of matching tokens in sequence. To concat these tokens into a string, you can use embedded javascript. For example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not the sharpest tool in the shed, and I just picked up Nearley.
Here's what my
grammar.ne
is:Here's my
index.js
:And, for some reason, here's my output:
What's the issue? This is just a quick test by the way, I haven't decided what I want to start working on
Edit: I made a typo in the Issue.
The text was updated successfully, but these errors were encountered: