[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Make it possible to return a symbol_type from yylex.
From: |
Akim Demaille |
Subject: |
Re: [PATCH] Make it possible to return a symbol_type from yylex. |
Date: |
Tue, 11 Nov 2008 15:56:15 +0100 |
Le 19 août 08 à 21:39, Akim Demaille a écrit :
* data/lalr1.cc (b4_lex_symbol_if): New.
(parse): When lex_symbol is defined, expected yylex to return the
complete lookahead.
Again, I have chosen a rather dumb name, a placeholder more than
anything. Since it defines the API with yylex, I guess I should be
using something like what "push" uses. Joel, you are certainly the
one who can make the best suggestion. Since symbol changes the yylex
interface as follows:
+yy::parser::symbol_type yylex()
i.e., the symbol is returned as a whole.