[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error UTF-8 strings
From: |
Hans Åberg |
Subject: |
Re: Error UTF-8 strings |
Date: |
Wed, 24 Jun 2020 14:48:11 +0200 |
> On 24 Jun 2020, at 07:27, Akim Demaille <akim@lrde.epita.fr> wrote:
>
>> Le 23 juin 2020 à 11:12, Hans Åberg <haberg-1@telia.com> a écrit :
>>
>> The other errors occurred because I report errors in the grammar actions as:
>> throw syntax_error(@x, "Name " + $x.text + " already defined in this
>> scope as "
>> + yytnamerr_(yytname_[x0->first - 255]) + ".");
>>
>> So perhaps you made some API for that?
>
> yysymbol_name(x0->first).
I have to write, as x0→first is an int,
symbol_name((symbol_kind_type)x0→first)
— When you made that complicated name, perhaps you did not consider it spilling
into the user namespace.
Also, changing tokens and symbols to 'enum class' worked fine, except that the
lexer return an int, so one must put in conversions there.
> If you need something else, you'll have to
> read the doc about parse.error=custom.
I saw it, and think of using it.
- Re: Error UTF-8 strings, (continued)
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/21
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/21
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/21
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/21
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/22
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/22
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/23
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/23
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/23
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/24
- Re: Error UTF-8 strings,
Hans Åberg <=
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/23
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/24
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/24
- Re: Error UTF-8 strings, Akim Demaille, 2020/06/24
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/24
- Re: Error UTF-8 strings, Ken Moffat, 2020/06/24
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/24
- Re: Error UTF-8 strings, Hans Åberg, 2020/06/24