-
Hello! That simple list:
And simple parser:
But i need recurse tree:
So i am trying:
But unsuccessfully... Thanks... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
FYI: There are two issues:
We can then simplify the rule: The end result is this: https://lexy.foonathan.net/playground/?id=8Pe85sjbM&mode=tree |
Beta Was this translation helpful? Give feedback.
-
FYI, I've now added As |
Beta Was this translation helpful? Give feedback.
-
All your links are not working. |
Beta Was this translation helpful? Give feedback.
FYI, I've now added
dsl::recurse_branch
, which simplifies things: https://lexy.foonathan.net/playground/?id=8Pe85sjbM&mode=tree (now need todsl::peek
, which involves backtracking).As
production
is already a branch, we can use it directly. Unlikedsl::p
,dsl::recurse
can't be turned into a branch automatically.