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

[Documentation] Samples for String Parsing #173

Open
NigelWSewell opened this issue Aug 6, 2023 · 0 comments
Open

[Documentation] Samples for String Parsing #173

NigelWSewell opened this issue Aug 6, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@NigelWSewell
Copy link

The Documentation for String Parsing is not extensive. It is easy enough to use the until token for simple tasks like:

terminal ID: '"' -> '"' ; to match "foo"

However when your input string has the need for escapes in it like "f\"oo!"

Then the documentation is not providing obvious clues as to how to match "f\"oo" instead of "f\" + error.

What would also be good is examples of how to match and extract the following:

An input of "bar" to match bar instead of "bar" (including the ").

This would help with designing & translating languages with string processing capabilities.

@msujew msujew added the documentation Improvements or additions to documentation label Aug 6, 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
Projects
None yet
Development

No branches or pull requests

2 participants