> On 11 Apr 2020, at 08:47, Akim Demaille <[email protected]> wrote:
> 
> Instead of
> 
>    /// (Internal) symbol kind.
>    enum symbol_kind_type
>    {
>      YYNTOKENS = 5, ///< Number of tokens.
...
> generate
> 
>    /// Symbol kinds.
>    struct symbol_kind
>    {
>      enum symbol_kind_type
>      {
>        YYNTOKENS = 5, ///< Number of tokens.
...

I use symbol table lookups of the form:
  std::optional<std::pair<my::the_parser::token_type, my::value>> x = 
mli::symbol_table.find(yylval.text);

What will the new name be?

The most logical from the user point of view would be to have 
the_parser::symbol_type.



Reply via email to