Added support for C++ identifier syntax.

This commit is contained in:
Tijs van Bakel 2002-03-23 18:43:55 +00:00 committed by Alexandre Julliard
parent a92e397934
commit 2e4f9ed8b0
1 changed files with 3 additions and 0 deletions

View File

@ -356,6 +356,9 @@ identifier:
| identifier '.' tIDENTIFIER { char* ptr = DBG_alloc(strlen($1) + 1 + strlen($3)+ 1);
sprintf(ptr, "%s.%s", $1, $3); $$ = DEBUG_MakeSymbol(ptr);
DBG_free(ptr); }
| identifier ':' ':' tIDENTIFIER { char* ptr = DBG_alloc(strlen($1) + 2 + strlen($4) + 1);
sprintf(ptr, "%s::%s", $1, $4); $$ = DEBUG_MakeSymbol(ptr);
DBG_free(ptr); }
%%