Reputation: 2167
I am considering rewritting a parser made in spirit::qi into x3. I can not find what is equivalent in X3 to the kwd directive used in conjonction with the / operator.
Upvotes: 1
Views: 38
Reputation: 393769
The kwd directive is not a part of Spirit Qi. It's part of the Spirit Repository.
The operator/
support is also also not part of Qi. As such, you have to expect to write these yourself.
Luckily in X3 that is relatively simple. I have many examples on this site showing how to make a kw
or ikw
parser modifier:
To actually get the full behavior with optional repeats and attribute binding I think the only realistic way is to make a custom parser type.
Upvotes: 0