From: Baptiste L. <bl...@us...> - 2004-06-19 14:51:31
|
Update of /cvsroot/cpptool/CppParser/examples/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28188/examples/parser Modified Files: cpp_grammar.txt cppparsertest.cpp Log Message: * refactoring occurence of cv_qualifiers_seq workaround_type_specifier cv_qualifiers_seq to type_specifier. Index: cpp_grammar.txt =================================================================== RCS file: /cvsroot/cpptool/CppParser/examples/parser/cpp_grammar.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** cpp_grammar.txt 19 Jun 2004 14:46:07 -0000 1.3 --- cpp_grammar.txt 19 Jun 2004 14:51:22 -0000 1.4 *************** *** 451,455 **** typedef_decl_specifiers = :node( 'typedef_specifier', ! 'typedef' ?(cv_qualifier_seq) workaround_type_specifier ?(cv_qualifier_seq) ); friend_decl_specifiers = :node( 'friend_specifier', --- 451,455 ---- typedef_decl_specifiers = :node( 'typedef_specifier', ! 'typedef' type_specifier ); friend_decl_specifiers = :node( 'friend_specifier', *************** *** 520,524 **** opt_parameter_decl_assign = ?( :node( 'assign_initializer', '=' assignment_expression ) ); ! parameter_type = ?(cv_qualifier_seq) workaround_type_specifier ?(cv_qualifier_seq); new_type = workaround_type_specifier; --- 520,524 ---- opt_parameter_decl_assign = ?( :node( 'assign_initializer', '=' assignment_expression ) ); ! parameter_type = type_specifier; new_type = workaround_type_specifier; Index: cppparsertest.cpp =================================================================== RCS file: /cvsroot/cpptool/CppParser/examples/parser/cppparsertest.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cppparsertest.cpp 19 Jun 2004 14:46:07 -0000 1.4 --- cppparsertest.cpp 19 Jun 2004 14:51:22 -0000 1.5 *************** *** 920,928 **** "(", testNode("function_parameter", ! testNode("declaration_specifier", fundamentalTypeNode("int")), testNode("declarator", declaratorIdNode( "x", 1 ) ) ), ",", testNode("function_parameter", ! testNode("declaration_specifier", fundamentalTypeNode("int")), testNode("declarator", declaratorIdNode( "y", 1 ) ), testNode("assign_initializer", "=", --- 920,928 ---- "(", testNode("function_parameter", ! testNode("declaration_specifier", testNode( "type_specifier", fundamentalTypeNode("int") ) ), testNode("declarator", declaratorIdNode( "x", 1 ) ) ), ",", testNode("function_parameter", ! testNode("declaration_specifier", testNode( "type_specifier", fundamentalTypeNode("int") ) ), testNode("declarator", declaratorIdNode( "y", 1 ) ), testNode("assign_initializer", "=", |