X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/4f82b42a9d5ce6f0baa70714f25346ba9303be73..f91b1629440cb52b851004570b7f280e79167383:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index 59dd2a0f..f4bf8032 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -769,7 +769,7 @@ dummy_symbol_get (location loc) symbol *sym; - sprintf (buf, "@%d", ++dummy_count); + sprintf (buf, "$@%d", ++dummy_count); sym = symbol_get (buf, loc); sym->class = nterm_sym; sym->number = nvars++; @@ -779,7 +779,7 @@ dummy_symbol_get (location loc) bool symbol_is_dummy (const symbol *sym) { - return sym->tag[0] == '@'; + return sym->tag[0] == '@' || (sym->tag[0] == '$' && sym->tag[1] == '@'); } /*-------------------.