Kross

qts-interpreter/interpreter.cpp
1 /***************************************************************************
2  * interpreter.cpp
3  * This file is part of the KDE project
4  * copyright (C)2007-2008 by Sebastian Sauer ([email protected])
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program; see the file COPYING. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  ***************************************************************************/
19 
20 #include "interpreter.h"
21 #include "script.h"
22 
23 // The in krossconfig.h defined KROSS_EXPORT_INTERPRETER macro defines an
24 // exported C function used as factory for Kross::EcmaInterpreter instances.
25 KROSS_EXPORT_INTERPRETER(Kross::EcmaInterpreter)
26 
27 using namespace Kross;
28 
29 namespace Kross
30 {
31 
32 /// \internal private d-pointer class.
33 class EcmaInterpreter::Private
34 {
35 public:
36 };
37 
38 }
39 
40 EcmaInterpreter::EcmaInterpreter(Kross::InterpreterInfo *info)
41  : Kross::Interpreter(info)
42  , d(new Private())
43 {
44  //krossdebug( QString("EcmaInterpreter::EcmaInterpreter") );
45 }
46 
48 {
49  //krossdebug( QString("EcmaInterpreter::~EcmaInterpreter") );
50  delete d;
51 }
52 
54 {
55  return new EcmaScript(this, action);
56 }
57 
~EcmaInterpreter() override
Destructor.
Base class for interpreter dependent functionality each script provides.
Definition: core/script.h:44
Definition: action.cpp:36
The InterpreterInfo class provides abstract information about a Interpreter before the interpreter-ba...
Base class for interpreter implementations.
The Action class is an abstract container to deal with scripts like a single standalone script file...
Definition: action.h:95
The EcmaInterpreter class implements a Kross::Interpreter to provide a factory for EcmaScript instanc...
Kross::Script * createScript(Kross::Action *action) override
Factory method to create a new EcmaScript instance.
The EcmaScript class implements a Kross::Script to handle a single script.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 22:52:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.