Changes in src/Parser/parser.yy [4040425:3cfe27f]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r4040425 r3cfe27f 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 17:24:45201613 // Update Count : 149 512 // Last Modified On : Thu Mar 24 16:16:16 2016 13 // Update Count : 1498 14 14 // 15 15 … … 51 51 #include <cstdio> 52 52 #include <stack> 53 #include "lex.h" 54 #include "parser.h" 55 #include "ParseNode.h" 53 56 #include "TypedefTable.h" 54 #include "lex.h"55 #include "ParseNode.h"56 57 #include "TypeData.h" 57 58 #include "LinkageSpec.h" … … 1028 1029 { 1029 1030 typedefTable.addToEnclosingScope( TypedefTable::ID ); 1030 $$ = $1 ;1031 $$ = $1->addInitializer( $2 ); 1031 1032 } 1032 1033 | declaration_qualifier_list new_variable_specifier initializer_opt … … 1035 1036 { 1036 1037 typedefTable.addToEnclosingScope( TypedefTable::ID ); 1037 $$ = $2->addQualifiers( $1 ) ;1038 $$ = $2->addQualifiers( $1 )->addInitializer( $3 );; 1038 1039 } 1039 1040 | new_variable_declaration pop ',' push identifier_or_type_name initializer_opt 1040 1041 { 1041 1042 typedefTable.addToEnclosingScope( *$5, TypedefTable::ID ); 1042 $$ = $1->appendList( $1->cloneType( $5 ) );1043 $$ = $1->appendList( $1->cloneType( $5 )->addInitializer( $6 ) ); 1043 1044 } 1044 1045 ;
Note:
See TracChangeset
for help on using the changeset viewer.