On Mon, Oct 17, 2022 at 02:35 PM, Mike Gro?mann wrote:
The compiler, which unfortunately also processes its instructions sequentially,?
would have to collect all literals first
That's the way Regina works.
?* When the anchor-points are determined, the variables are filled?????? ?
?* in with the parts of the string that comes between each anchor.?????? ?
?* Here is an example:?????????????????????????????????????????????????? ?
?*?????????????????????????????????????????????????????????????????????? ?
?*??? parse value 'That is a parse string!' with a b 'is' c d 'i' e????? ?
?*?????????????????????????????????????????????????????????????????????? ?
?* In this example, there are four anchors in the string, the two??????? ?
?* patterns 'is' and 'i', and the two implicit anchors start-of-string?? ?
?* and end-of-string. They anchor particular locations in the string???? ?
?* to the lists of variables: (a b), (c d) and (e). At the first level?? ?
?* the anchors are found and the text between them are deternmined?????? ?
?* (SOS=Start-Of-String, EOS=End-Of-String):???????????????????????????? ?
?*?????????????????????????????????????????????????????????????????????? ?
?*??????????????????????????? That is a parse string!??????????????????? ?
?*??? anchors??????????? (SOS)-----is------------i---(EOS)?????????????? ?
?*??? strings in-between????? <a b>? <<<<c d>>>>> <e>??????????????????? ?
?*?????????????????????????????????????????????????????????????????????? ?