• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop AutoTools Parser
 

KDevelop AutoTools Parser

  • buildtools
  • lib
  • parsers
  • autotools
autotoolsdriver.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Alexander Dymo *
3  * adymo@kdevelop.org *
4  * *
5  * Copyright (c) 2005 by Matt Rogers *
6  * mattr@kde.org *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU Library General Public License as *
10  * published by the Free Software Foundation; either version 2 of the *
11  * License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU Library General Public *
19  * License along with this program; if not, write to the *
20  * Free Software Foundation, Inc., *
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22  ***************************************************************************/
23 #ifndef TQMAKETQMAKEDRIVER_H
24 #define TQMAKETQMAKEDRIVER_H
25 
26 #include <tqvaluelist.h>
27 #include <kurl.h>
28 
29 namespace AutoTools {
30 
36 class ProjectAST;
37 
42 class Driver
43 {
44 public:
51  static int parseFile(const char *fileName, ProjectAST **ast);
52  static int parseFile(TQString fileName, ProjectAST **ast);
53  static int parseFile(KURL fileName, ProjectAST **ast);
54 
55 /* template<class Op>
56  static void walkAST(Op &op, const ProjectAST *ast)
57  {
58 // op(ast);
59  for (TQValueList<TQMake::AST*>::const_iterator it = ast->statements.constBegin();
60  it != ast->statements.constEnd(); ++it)
61  {
62  const AST *child = *it;
63  if (child->nodeType() == AST::ProjectAST)
64  walkAST<Op>(op, static_cast<const TQMake::ProjectAST*>(child));
65  else
66  op(child);
67  }
68  }
69 */
70 };
71 
72 }
73 
74 #endif
75 
76 // kate: indent-mode csands; tab-width 4; space-indent off; auto-insert-doxygen on;
AutoTools::ProjectAST
Project AST node.
Definition: autotoolsast.h:122
AutoTools::Driver::parseFile
static int parseFile(const char *fileName, ProjectAST **ast)
Parses the file fileName and stores the resulting ProjectAST root into ast.
Definition: autotoolsdriver.cpp:37
AutoTools::Driver
Driver.
Definition: autotoolsdriver.h:42
AutoTools
Definition: autotoolsast.cpp:25

KDevelop AutoTools Parser

Skip menu "KDevelop AutoTools Parser"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop AutoTools Parser

Skip menu "KDevelop AutoTools Parser"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop AutoTools Parser by doxygen 1.8.13
This website is maintained by Timothy Pearson.