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
Expand last example in the grammars tutorial to allow comments and blank lines #1759
Comments
|
What document URL/file is this referring to? |
|
I want to say the Grammars tutorial, but I'm not sure either... |
|
Sorry, not too clear. Actually, both grammar files could use it, but I was originally referring to the last example in 'doc/doc/language/grammars.pod6'. |
|
Would the white space separate two players? In that case, we need a higher-level grammar to take care of that. It would certainly increase the value of the tutorial, but I think it might be better to include another example rather than expand the current one. |
|
There's an additional problem here, it's that it does not work if we use the default |
|
There's an additional problem with that example, and it's that it's redefining whitespace arbitrarily just because it's using a rule instead of a token. I think I'm going ot change that, for starters, and to reduce confusion. |
So that it can be expanded to fulfill #1759
For example, fix grammar and actions to handle this input format (key/value input with comments and blank lines allowed):
The text was updated successfully, but these errors were encountered: