metormaon / flue

MIT License
1 stars 0 forks source link

Demonstrate ExPaths by transforming A & {"," & A} into +{A}/"," #28

Closed metormaon closed 3 years ago

yossigil commented 3 years ago

what is exPath?

metormaon commented 3 years ago

ExPath is a data structure that can point to a “location” within a grammatical expression.

For example, in the expression

B | (C & [D])

the ExPath to D would represent the path from the root, through child #2 of an Or expression, through child #2 if a Then expression, then through an Optional expression, to D itself.

When I search for a pattern in expressions, I generate ExPaths for all the found patterns, and then I can transform the patterns into something else, for example.

ExPath is a just a tool I’m using to demonstrate rule optimization, for example.

From: Yossi Gil @.> Date: Thursday, 23 September 2021 at 17:45 To: metormaon/flue @.> Cc: Noam Rotem @.>, Author @.> Subject: Re: [metormaon/flue] Demonstrate ExPaths by transforming A & {"," & A} into +{A}/"," (#28)

what is exPath?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metormaon/flue/issues/28#issuecomment-925883690, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABFJ3LLDG7K33QHAT6FYCP3UDM4QPANCNFSM5EJLBCQA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

yossigil commented 3 years ago

Now I get it. I thought you were referring to the famous xpath language