help-bison
[Top][All Lists]
Advanced

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

Re: Parsing user-defined types


From: EML
Subject: Re: Parsing user-defined types
Date: Wed, 8 May 2019 20:38:30 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 08/05/2019 19:14, Hans Åberg wrote:

One can store the Bison token value on the lookup table that the lexer uses. So 
the lexer matches the identifier, then, checks if it has been identified, and 
if so, returns its token and semantic values. Otherwise it is just a name, like 
in a definition, whose Bison rule action puts it on the lookup table.



Hi Hans - presumably this isn't possible with flex? Do you know of a lexer which can do this?



reply via email to

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