Boost spirit parse rule is not applied

前端 未结 2 1306
眼角桃花
眼角桃花 2021-01-16 03:00

i can´t see my error here .. this rule parse some stuff ok but the last two samples not. Could somebody please give me a hint ..

Goal is a parser than can identify

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 03:16

    Try changing

    >> *(lit('.') >> name_pure >> lit('(') > paralistopt > lit(')'))
    

    to

    >> *(*(lit('.') >> name_pure) >> lit('(') > paralistopt > lit(')'))
    

提交回复
热议问题