Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
How about a "Burry" action? #47
Hi, first Hime is awesome, it has very sophisticated features, so I think it's worth creating a bitbucket account to post this :)
The promotes and drop actions are great, but it would be nice to turn nodes into childs too.
Not sure I was clear =)
Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).
Hi, thanks for the input! I think this is an interesting proposal and would not require much change.
As you can see, Hime already uses the curly brackets within the body of rules to delimit a part of this body. So why not re-use this without the context specification. So this would give:
The produced AST would be like:
Because we still need to put a symbol on the created sub-parent, we could use the built-in epsilon terminal.
Do you think this would solve your issue ?