Factoring out common parts of Spirit rules

后端 未结 2 1685
失恋的感觉
失恋的感觉 2020-12-21 16:55

I have a lot of rules that have common prefix and suffix:

rule = begin_stuff >> some >> other >> stuff >> end_stuff.
<
2条回答
  •  半阙折子戏
    2020-12-21 17:42

    I think you need to use the Qi Confix Parser Derective from Spirit Repository. It is exactly what you need.

提交回复
热议问题