}
/* An object of this type is pushed on a FIFO by the "outer" lexer. */
-struct token_and_value
+struct c_token_and_value
{
int token;
YYSTYPE value;
/* A FIFO of tokens that have been read but not yet returned to the
parser. */
-static std::vector<token_and_value> token_fifo;
+static std::vector<c_token_and_value> token_fifo;
/* Non-zero if the lexer should return tokens from the FIFO. */
static int popping;
static int
yylex (void)
{
- token_and_value current;
+ c_token_and_value current;
int first_was_coloncolon, last_was_coloncolon;
struct type *context_type = NULL;
int last_to_examine, next_to_examine, checkpoint;
while (next_to_examine <= last_to_examine)
{
- token_and_value next;
+ c_token_and_value next;
next = token_fifo[next_to_examine];
++next_to_examine;
}
/* An object of this type is pushed on a FIFO by the "outer" lexer. */
-struct token_and_value
+struct d_token_and_value
{
int token;
YYSTYPE value;
/* A FIFO of tokens that have been read but not yet returned to the
parser. */
-static std::vector<token_and_value> token_fifo;
+static std::vector<d_token_and_value> token_fifo;
/* Non-zero if the lexer should return tokens from the FIFO. */
static int popping;
static int
yylex (void)
{
- token_and_value current;
+ d_token_and_value current;
int last_was_dot;
struct type *context_type = NULL;
int last_to_examine, next_to_examine, checkpoint;
while (next_to_examine <= last_to_examine)
{
- token_and_value next;
+ d_token_and_value next;
next = token_fifo[next_to_examine];
++next_to_examine;
while (next_to_examine <= last_to_examine)
{
- token_and_value next;
+ d_token_and_value next;
next = token_fifo[next_to_examine];
++next_to_examine;
}
/* An object of this type is pushed on a FIFO by the "outer" lexer. */
-struct token_and_value
+struct go_token_and_value
{
int token;
YYSTYPE value;
/* A FIFO of tokens that have been read but not yet returned to the
parser. */
-static std::vector<token_and_value> token_fifo;
+static std::vector<go_token_and_value> token_fifo;
/* Non-zero if the lexer should return tokens from the FIFO. */
static int popping;
static int
yylex (void)
{
- token_and_value current, next;
+ go_token_and_value current, next;
if (popping && !token_fifo.empty ())
{
- token_and_value tv = token_fifo[0];
+ go_token_and_value tv = token_fifo[0];
token_fifo.erase (token_fifo.begin ());
yylval = tv.value;
/* There's no need to fall through to handle package.name
if (next.token == '.')
{
- token_and_value name2;
+ go_token_and_value name2;
name2.token = lex_one_token (pstate);
name2.value = yylval;