-
I've written a grammar for the WDL language. The grammar is here: https://github.com/jdidion/pest-wdl/blob/main/src/wdl.pest I am observing the problem when trying to parse an
Is there any way to tell pest to print out its state as it's parsing so I can see where it's getting hung up? Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Maybe you can try using the grammar debugger: #739 ? |
Beta Was this translation helpful? Give feedback.
-
I'm finding that rules like the following are very slow:
If I re-write this as
parsing time decreases by an order-of-magnitude. I am not sure if this is the root cause yet. I'm going to re-write the expression grammar and see if that resolves the issue. |
Beta Was this translation helpful? Give feedback.
-
Yes! That seems to fix the issue. Is there any place where these anti-patterns are being collected? I'm sure others have run into this issue before. |
Beta Was this translation helpful? Give feedback.
I'm finding that rules like the following are very slow:
If I re-write this as
parsing time decreases by an order-of-magnitude. I am not sure if this is the root cause yet. I'm going to re-write the expression grammar and see if that resolves the issue.