File indexing completed on 2024-03-24 04:36:55
0001 /*************************************************************************** 0002 * This file is part of KDevelop * 0003 * Copyright 2008 Niko Sams <niko.sams@gmail.com> * 0004 * Copyright 2009 Milian Wolff <mail@milianw.de> * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU Library General Public License as * 0008 * published by the Free Software Foundation; either version 2 of the * 0009 * License, or (at your option) any later version. * 0010 * * 0011 * This program is distributed in the hope that it will be useful, * 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0014 * GNU General Public License for more details. * 0015 * * 0016 * You should have received a copy of the GNU Library General Public * 0017 * License along with this program; if not, write to the * 0018 * Free Software Foundation, Inc., * 0019 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0020 ***************************************************************************/ 0021 0022 #include "parsesession.h" 0023 #include "tokenizer.h" 0024 #include "cssparser.h" 0025 #include "cssdebugvisitor.h" 0026 #include "cssast.h" 0027 #include "csstokentext.h" 0028 0029 #include <KAboutData> 0030 0031 #include <language/util/debuglanguageparserhelper.h> 0032 0033 using namespace Css; 0034 0035 typedef KDevelopUtils::DebugLanguageParserHelper<ParseSession, KDevPG::TokenStream, Parser::Token, 0036 Tokenizer, StartAst, DebugVisitor, tokenText> CssParser; 0037 0038 int main(int argc, char* argv[]) 0039 { 0040 KAboutData aboutData( "css-parser", i18n( "css-parser" ), 0041 "1", i18n("KDevelop CSS parser debugging utility"), KAboutLicense::GPL, 0042 i18n( "(c) 2008 Niko Sams, 2009 Milian Wolff" ), QString(), "http://www.kdevelop.org" ); 0043 0044 return KDevelopUtils::initAndRunParser<CssParser>(aboutData, argc, argv); 0045 }