Replies: 1 comment 2 replies
-
I don't know the history. Have you used |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to understand the following piece of codes for #520:
pest/generator/src/generator.rs
Lines 279 to 329 in a4c93a7
The bodies of the generated methods are chains of function calls as listed below:
rule
->#expr
#expr
rule
->atomic
->#expr
atomic
->rule
->#expr
atomic
->rule
->#expr
What makes me wonder is that for
Atomic
,atomic
is called insiderule
, but forCompoundAtomic
andNonAtomic
,rule
is called insideatomic
. Is there a reason that the calling sequence forAtomic
is different fromCompoundAtomic
andNonAtomic
? Does the calling sequence matter?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions