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?

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to