Boost logo

Boost :

Subject: [boost] [spirit] Symbols parser with overlapping symbols
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-09-30 12:17:34


I wonder how qi::symbols parser behaves when it contains partially overlapping
symbols. For example:

 qi::symbols< char, int > syms;
 syms.add("a", 1);
 syms.add("aaa", 2);

What will this parser return when "aaa" is passed as input? I couldn't find it
in the docs.

Boost list run by bdawes at, gregod at, cpdaniel at, john at