From: Baptiste L. <bl...@us...> - 2004-08-08 16:19:17
|
Update of /cvsroot/cpptool/CppParser/src/cppparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10274/src/cppparser Modified Files: cpp_grammar.txt Log Message: * improved support for if statement Index: cpp_grammar.txt =================================================================== RCS file: /cvsroot/cpptool/CppParser/src/cppparser/cpp_grammar.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cpp_grammar.txt 8 Aug 2004 16:12:52 -0000 1.4 --- cpp_grammar.txt 8 Aug 2004 16:19:08 -0000 1.5 *************** *** 320,324 **** selection_statement = :node( 'if_statement', ! 'if' '(' condition ')' statement ?( 'else' statement ) ) | :node( 'switch_statement', 'switch' '(' :node('condition', condition) ')' --- 320,326 ---- selection_statement = :node( 'if_statement', ! 'if' '(' :node('condition', condition) ')' ! :node('then_statement', statement) ! ?( 'else' :node('else_statement', statement) ) ) | :node( 'switch_statement', 'switch' '(' :node('condition', condition) ')' |