-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Visualizer: Show a useful definition for inherited primitive rules #57
Comments
The primitive rules are all in the ProtoBuiltInRules grammar, which is the You can find ProtoBuiltInRules in src/Grammar.js. On Thu, Mar 10, 2016 at 2:52 PM, mroeder notifications@github.com wrote:
|
https://github.com/cdglabs/ohm/blob/master/src/Grammar.js#L286
|
Yes, I'm just not sure that's all you need to know -- the arity is necessary if you are going to write a semantic action for that rule. Also, Maybe we should show something like:
|
FWIW, I think all of the primitive rules have arity 1. On Fri, Mar 11, 2016 at 10:53 AM, Patrick Dubroy notifications@github.com
|
Good point. |
In the grammar view, we now show the definition of inherited rules, e.g.
ListOf
,lower
, etc. For rules that are parsed from a grammar, we show the original source, but for primitive rules (e.g.any
) we should figure out something useful to show. Maybe something likeany = (primitive rule with arity 1)
.The text was updated successfully, but these errors were encountered: