Larry Evans

Results 53 comments of Larry Evans

On 3/6/20 3:20 PM, Nana Sakisaka wrote: > Larry, I understand that the diff proposed in #237 > is able to 'fix' the error > in certain branches. But the...

Use boost::variant instead of std::variant. The problem, I'd guess, is: https://www.boost.org/doc/libs/1_81_0/boost/spirit/home/x3/support/traits/is_variant.hpp doesn't consider std::variant as a variant.

OOPS! Adding obvious change to is_variant.hpp not enough. With the obvious change, now getting, using std::variant: ``` C:/msys64/home/evansl/prog_dev/boost.org/1_80_0download/download/boost/spirit/home/x3/support/traits/variant_has_substitute.hpp:23:40: error: no type named 'types' in 'std::variant' typedef typename variant_type::types types; ~~~~~~~~~~~~~~~~~~~~~~~^~~~~...

> OOPS! Adding obvious change to is_variant.hpp not enough. With the obvious change, now getting, using std::variant: > > ``` > C:/msys64/home/evansl/prog_dev/boost.org/1_80_0download/download/boost/spirit/home/x3/support/traits/variant_has_substitute.hpp:23:40: error: no type named 'types' in 'std::variant' >...

> Take a look at the `mini_xml` in the Qi examples. It makes use of inherited attributes, which is alas not available in X3. You might want to just use...

> > Take a look at the `mini_xml` in the Qi examples. It makes use of inherited attributes, which is alas not available in X3. You might want to just...

> > > Take a look at the `mini_xml` in the Qi examples. It makes use of inherited attributes, which is alas not available in X3. You might want to...

> > > > > Take a look at the `mini_xml` in the Qi examples. It makes use of inherited attributes, which is alas not available in X3. You might...

> I think it's hard to solve without semantic actions in this problem .In order to match the begin tag, we always have to match the begin tag name, Spirit...

> Edit: it is also possible return fail in the on_success callback via `_pass(context) = false`. > > I also would like to see more examples, especially when parsing context-sensitive...