File indexing completed on 2024-04-14 14:27:10

0001 /***************************************************************************
0002  * interpreter.cpp
0003  * This file is part of the KDE project
0004  * copyright (C)2007-2008 by Sebastian Sauer (mail@dipe.org)
0005  *
0006  * This program is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Library General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2 of the License, or (at your option) any later version.
0010  * This program is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * Library General Public License for more details.
0014  * You should have received a copy of the GNU Library General Public License
0015  * along with this program; see the file COPYING.  If not, write to
0016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017  * Boston, MA 02110-1301, USA.
0018  ***************************************************************************/
0019 
0020 #include "interpreter.h"
0021 #include "script.h"
0022 
0023 // The in krossconfig.h defined KROSS_EXPORT_INTERPRETER macro defines an
0024 // exported C function used as factory for Kross::EcmaInterpreter instances.
0025 KROSS_EXPORT_INTERPRETER(Kross::EcmaInterpreter)
0026 
0027 using namespace Kross;
0028 
0029 namespace Kross
0030 {
0031 
0032 /// \internal private d-pointer class.
0033 class EcmaInterpreter::Private
0034 {
0035 public:
0036 };
0037 
0038 }
0039 
0040 EcmaInterpreter::EcmaInterpreter(Kross::InterpreterInfo *info)
0041     : Kross::Interpreter(info)
0042     , d(new Private())
0043 {
0044     //krossdebug( QString("EcmaInterpreter::EcmaInterpreter") );
0045 }
0046 
0047 EcmaInterpreter::~EcmaInterpreter()
0048 {
0049     //krossdebug( QString("EcmaInterpreter::~EcmaInterpreter") );
0050     delete d;
0051 }
0052 
0053 Kross::Script *EcmaInterpreter::createScript(Kross::Action *action)
0054 {
0055     return new EcmaScript(this, action);
0056 }
0057