clangparser.cpp

来自「2009 ROBOCUP 仿真2DSERVER 源码」· C++ 代码 · 共 57 行

CPP
57
字号
// -*-c++-*-/***************************************************************************                                clangparser.cpp                           Parser for the Coach Lang                             -------------------    begin                : 2008-08-22    copyright            : (C) 2008 by The RoboCup Soccer Server                           Maintainance Group.    email                : sserver-admin@lists.sourceforge.net***************************************************************************//*************************************************************************** *                                                                         * *   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.                                                        * *                                                                         * ***************************************************************************/#ifdef HAVE_CONFIG_H#include "config.h"#endif#ifdef HAVE_SSTREAM#include <sstream>#else#include <strstream>;#endif#include "clangparser.h"namespace rcss {namespace clang {Parser::Parser( Builder & builder )  : M_param( *this, builder ),    M_parser( &RCSS_CLANG_parse ){}intParser::parse( const char * msg ){#ifdef HAVE_SSTREAM    std::istringstream strm( msg );#else    std::istrstream strm( msg );#endif    return ( rcss::Parser::parse( strm ) ? 0 : 1 );}}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?