Closed ftyers closed 4 years ago
It might also be interesting to allow both SL and TL (and ref?) of non-terminals.
<clip pos="1" part="a_gen"/>
and <clip pos="1" part="a_gen" side="tl"/>
are already equivalent and non-terminals have a target side and nothing else.
Yeah, I worked that out, but then it should maybe give an error or warning if you try and clip from an sl
side?
The problem is that terminals and non-terminals are actually indistinguishable unless you want to explicitly mark it on all your <def-cat>
s.
Also, due to #59, clipping the source side of a non-terminal will soon make sense.
At the moment we have
and
These can be used the same way in terminals and in non-terminals, but in non-terminals there is no target side to the clip, so it returns null. A simple start would be to allow:
For non-terminals. But potentially we need to rethink how this works.