Replies: 4 comments 6 replies
-
Could you share the nom code so i can compare what you are trying to do? Also, is there a reference grammar? |
Beta Was this translation helpful? Give feedback.
-
Can I add you to a project with the nom code ? The reference grammar is the one of GNU find, you can find it in the manual, and I modelled it using some AST. |
Beta Was this translation helpful? Give feedback.
-
I guess I didn't look closely enough at Generally, when I see people trying to parse grammars like this (take for instance math expressions), they take an iterative approach using |
Beta Was this translation helpful? Give feedback.
-
So what I am getting from the answers is that recursive parsing is not fully supported by winnow due to the structure of the project ? One should use other methods to achieve parsing a grammar like above ? |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I am comparing parser combinators and trying to build a parser for GNU find in each. I am having trouble making a parser in winnow.
The following code will stack overflow:
I was able to achieve the above using
nom
,nom_locate
andnom-recursive
, yet I find the solution to lack elegance and I like the error support ofwinnow
. Please let me know if there are any way I can do the above.One of winnow's examples uses recursion yet I am having trouble figuring out the major difference between it and this project, except that maybe the lack of literal (
if
) before the recursive expression.Beta Was this translation helpful? Give feedback.
All reactions