bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic token kinds


From: Frank Heckenbach
Subject: Re: Dynamic token kinds
Date: Sun, 16 Dec 2018 11:13:36 +0100

Hans Åberg wrote:

> Perhaps an entirely static approach can be achieved by the type
> being a part of the token_type. On the other hand, the use is for
> dynamic token lookup, so it may be too much of an effort for that.

Not sure what you mean with "part of", but with Bison's variant the
semantic type is determined by token_type, if that's what you mean.

> Personally, I am already at C++17, so I have no reason for using a
> simpler variant. Having the type stored just adds a size_t, and
> that is used a lot in other circumstances, so no overhead to worry
> about.

Well, we had this discussion recently (as far as Bison is
concerned).

Regards,
Frank



reply via email to

[Prev in Thread] Current Thread [Next in Thread]