I implemented grammar (include/insituc/parser/grammar.hpp, include/insituc/parser/implementation/grammar.hpp) and skipper grammar (include/insituc/parser/skipper.hpp, include/insituc/parser/implementation/skipper.hpp) in separate translation units (repository, compiler: clang++ -stdlib=libc++ -std=gnu++1z, version 3.6 (maybe 3.5 workable too) and libc++, Qt needed for qmake only at the moment). All of this looks correct, and grammar works correctly (src/tst/runtime/jit_compiler/jit_compiler.pro passes all the tests, but without comments in source files).
But if I add comments to input (test/cases/*.txt), then parsing failed (somewhere into Boost.Spirit X3).
What is wrong? I can't find the source of the errors.
> I found the solution. x3::char_ - "*/" does not works as intended (just
> copied from Boost.Spirit V2 source). I replaced with x3::char_ -
> (x3::char_('*') | x3::char_('/')) and now all working correct.
That seems strange to me, even in Qi, "*/" is not the same as char_("*/"),
which you intended.