Parser rule dependent on parameter
问题 I was trying to define a parser where the rules are not fully pre-defined, i.e. they contain a variable part. This was no problem with Spirit Qi, but I was not able to implement it due to the static nature of X3. I tried the with directive , which is unfortunately undocumented, but without luck so far. The only examples I found so far are inside a lambda expression. I constructed a simple example to demonstrate the issue: parsing integers where the separator is given as a parameter. #include