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

Parsing Whitespace #29

Open
siuying opened this issue Jan 20, 2014 · 0 comments
Open

Parsing Whitespace #29

siuying opened this issue Jan 20, 2014 · 0 comments

Comments

@siuying
Copy link

siuying commented Jan 20, 2014

In my grammar, I try to add support of whitespace ...

combinator              = '>' | '~' | plus | S;

The grammar generate a parser, but the generated parser compiles with error:

Use of undeclared identifier 'TOKEN_KIND_BUILTIN_S'; did you mean 'TOKEN_KIND_BUILTIN_EOF'?
No visible @interface for 'CSSSelectorParser' declares the selector 'matchS:'

I noticed the whitespace token is TOKEN_KIND_BUILTIN_WHITESPACE and matchWhitespace:, so I try to write grammar like this:

combinator              = '>' | '~' | plus | Whitespace;

This is not a valid grammar however. Can you advice how I can properly use whitespace? Thanks a lot.

siuying added a commit to siuying/CSSSelectorConverter that referenced this issue Jan 20, 2014
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

1 participant