Closed enjoysmath closed 4 years ago
From first sight, that is because the input matches the grammar already after the first BlockDiagram
in Query
. Change Query
into
Query < BlockDiagram (:"\n\n" BlockDiagram)* eof
and it will only match if the complete input is consumed.
Disclaimer: untested.
If you got it to work, could you close this issue?
The output is that it parses a SelfMap (the first \n\n-separated chunk in the input string) but does not parse the proceeding BlockDiagram. If you swap around the input string, put that BlockDiagram first, then it parses that first and leaves out the SelfMap.