8000 Ignore Whitespace · Issue #68 · lalrpop/lalrpop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ignore Whitespace #68

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

Closed
Binero opened this issue Jan 31, 2016 · 2 comments
Closed

Ignore Whitespace #68

Binero opened this issue Jan 31, 2016 · 2 comments

Comments

@Binero
Copy link
Binero commented Jan 31, 2016

I want to use this library to parse the OpenDDL language, which is interesting in that whitespace is irrelevant at any position. As such, is there a way to tell the library to ignore certain characters?

Also, there is a small exception to this. In a string, whitespace is relevant. So I would like to ignore whitespace in all places but one.

@nikomatsakis
Copy link
Collaborator

Right now, you'd have to write your own lexer I think. Customizing how
the built-in lexer handles whitespace is a high priority though.

On Sun, Jan 31, 2016 at 05:12:13AM -0800, Jeroen Bollen wrote:

I want to use this library to parse the OpenDDL language, which is interesting in that whitespace is irrelevant at any position. As such, is there a way to tell the library to ignore certain characters?

Also, there is a small exception to this. In a string, whitespace is relevant. So I would like to ignore whitespace in all places but one.


Reply to this email directly or view it on GitHub:
https://github.com/nikomatsakis/lalrpop/issues/68

@nikomatsakis
Copy link
Collaborator

This is sort of a dup of #10. Going to close in favor of that.

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
0