From: Tom H. <tom...@us...> - 2003-01-10 17:36:15
|
Update of /cvsroot/rccparser/rccparser/src In directory sc8-pr-cvs1:/tmp/cvs-serv1561/src Modified Files: Makefile.am rcclexer.lpp rccparse.ypp rccparser.h rccptest.cpp Log Message: 2003-01-10 Tom Howard <tom...@us...> * ./Makefile.am * ./src/Makefile.am * ./src/rcclexer.lpp * ./src/rccparse.ypp * ./src/rccparser.h * ./src/rccptest.cpp * ./src/doxygen.conf Added a whole heap of documentation Added two missing player audio functions Index: Makefile.am =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/Makefile.am,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** Makefile.am 6 Jan 2003 16:07:47 -0000 1.29 --- Makefile.am 10 Jan 2003 17:35:55 -0000 1.30 *************** *** 15,19 **** rccparse.ypp ! librccparser_la_LDFLAGS = -version-info 1:0:1 # 1. Start with version information of `0:0:0' for each libtool library. # --- 15,19 ---- rccparse.ypp ! librccparser_la_LDFLAGS = -version-info 2:0:2 # 1. Start with version information of `0:0:0' for each libtool library. # *************** *** 91,92 **** --- 91,95 ---- TESTS = test_script + + doc: doxygen.conf + doxygen doxygen.conf Index: rcclexer.lpp =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rcclexer.lpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rcclexer.lpp 6 Jan 2003 15:41:32 -0000 1.4 --- rcclexer.lpp 10 Jan 2003 17:35:57 -0000 1.5 *************** *** 32,35 **** --- 32,36 ---- } + // #define YY_USER_ACTION { if( YYText()[ 0 ] != 0 ) std::cout << YYText(); else std::cout << "-" << std::endl; } %} *************** *** 41,44 **** --- 42,46 ---- %option prefix="RCC" %option yyclass="RCCLexer" + %option always-interactive UINT [0-9]+ *************** *** 46,50 **** REAL [\+\-]?{UINT}?\.{UINT} EXP ({REAL}|{INT})[eE]{INT} ! WS [ \t\n]+ LP \( --- 48,52 ---- REAL [\+\-]?{UINT}?\.{UINT} EXP ({REAL}|{INT})[eE]{INT} ! WS [ \t\n\0]+ LP \( *************** *** 223,229 **** opp { return OPP_KW; } [a-zA-Z_]* { *M_lexed_val = std::string( YYText() ); return OTHER; } - \0 { return ENDS; } . { return ERROR; } --- 225,233 ---- opp { return OPP_KW; } + compression { return COMPRESSION_KW; } + compression_unsupported { return COMPRESSION_KW; } + [a-zA-Z_]* { *M_lexed_val = std::string( YYText() ); return OTHER; } . { return ERROR; } Index: rccparse.ypp =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparse.ypp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rccparse.ypp 6 Jan 2003 15:41:33 -0000 1.3 --- rccparse.ypp 10 Jan 2003 17:35:57 -0000 1.4 *************** *** 72,85 **** void yyerror(const char*); ! namespace { rcc::Parser::Param& getParam( void* param ) { ! static rcc::Parser::Param* cached_param ! = reinterpret_cast< rcc::Parser::Param* >( param ); ! if( cached_param != param ) [...1360 lines suppressed...] ; ! ok: LP OK_KW CLANG_KW LP VER_KW INT INT RP RP { ! PARAM.buildClangVerOK( getInt( $3 ), getInt( $4 ) ); } ! | LP OK_KW EYE_KW ON_OFF_KW RP ! { PARAM.buildEyeOK( getBool( $4 ) ); } ! | LP OK_KW CHANGE_KW INT INT RP { ! PARAM.buildChangePlayerTypeOK( getInt( $4 ), getInt( $5 ) ); } ! | LP OK_KW COMPRESSION_KW INT RP ! { PARAM.buildCompressionOK( getInt( $4 ) ); } ! | LP OK_KW STR RP ! { PARAM.buildUnknownOK( getString( $3 ) ); } ; Index: rccparser.h =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparser.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** rccparser.h 17 Dec 2002 17:08:40 -0000 1.21 --- rccparser.h 10 Jan 2003 17:36:01 -0000 1.22 *************** *** 13,17 **** * * * This program is free software; you can redistribute it and/or modify * ! * it under the terms of the GNU LGPL as published by the Free Software * * Foundation; either version 2 of the License, or (at your option) any * * later version. * --- 13,17 ---- * * * This program is free software; you can redistribute it and/or modify * ! * it under the terms of the GNU GPL as published by the Free Software * * Foundation; either version 2 of the License, or (at your option) any * [...7235 lines suppressed...] ! virtual ! void ! doBuildEyeOK( bool on ) {} ! virtual ! void ! doBuildChangePlayerTypeOK( int unum, int type ) {} ! ! virtual ! void ! doBuildCompressionOK( int level ) {} ! ! virtual ! void ! doBuildUnknownOK( const std::string& msg ) {} ! //@} ! }; } Index: rccptest.cpp =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccptest.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rccptest.cpp 17 Dec 2002 18:33:29 -0000 1.3 --- rccptest.cpp 10 Jan 2003 17:36:04 -0000 1.4 *************** *** 106,110 **** if( str.size() == 2 ) { ! std::istrstream strm( str.c_str() ); int offset = -1; strm >> offset; --- 106,110 ---- if( str.size() == 2 ) { ! std::istringstream strm( str ); int offset = -1; [...1600 lines suppressed...] { ! std::ostringstream clang_strm; rcss::clang::Msg& msg = *( builder.getMsg() ); clang_strm << "(hear " << msg.getTimeSend(); *************** *** 2196,2202 **** else clang_strm << " online_coach_right "; ! clang_strm << msg.getTimeRecv() << " " << msg << ")" << std::ends; parsed_data = clang_strm.str(); - clang_strm.freeze( false ); } #endif --- 2195,2200 ---- else clang_strm << " online_coach_right "; ! clang_strm << msg.getTimeRecv() << " " << msg << ")"; parsed_data = clang_strm.str(); } #endif |