-
Notifications
You must be signed in to change notification settings - Fork 12
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
_locals(), _params() - what are they for? #104
Comments
Yeah, an example is definitely needed here. Thanks for the dangling link notice. |
Dangling links fixed. I just assumed that there were no examples when I first saw this issue, but after looking, they each have examples and explanations. Are you looking for "when would I use this"-type of info? At least for the |
The first exposure of the of the reader to I believe that the docs would benefit from a separate section "Rule State" that would separately cover rule locals, rule parameters, the way to access them via From section More About Rules I still cannot figure out a couple of things:
In a couple of places you use terms "the currently processed rule" and "the bottommost rule". I think they mean the same thing. I would recommend defining one term, putting it in the Definitions pge, and using it throughout the documentation. |
Ok, thanks for the explanations. I agree with most of the points above. I'll be updating this section soon. |
And BTW, as someone mentioned in the review, is there still a need to have these names start with an underscore? Boost.Phoenix and Boost.Lambda needed them for obvious reasons, but bacause you endorse lambdas, the need for those magic names disappears, I guess. |
I still think there's a need for a naming convention here. There's no magic, but since these functions are called without qualification, it can be hard to distinguish them from your own code. |
… one based on a real section of YAML. Fixes #104.
… one based on a real section of YAML. Fixes #104.
… one based on a real section of YAML. Fixes #104.
… one based on a real section of YAML. Fixes #104.
… one based on a real section of YAML. Fixes #104.
How about calling them with qualification: |
https://tzlaine.github.io/parser/doc/html/boost_parser__proposed_/tutorial/the_parse_context.html
After reading it, I have no idea what
_locals
and_params
are for. Maybe the page should give a purpose for these two, and a motivating example. Also, no clue why two are needed.Also, in that page, the links to
_locals()
and_params()
are dangling.The text was updated successfully, but these errors were encountered: