OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogserver / opencog / cogserver / shell / McpShell.cc

49 lines · cc ref:
/*
 * McpShell.cc
 *
 * Simple MCP shell
 * Copyright (c) 2008 Linas Vepstas <linas@linas.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License v3 as
 * published by the Free Software Foundation and including the exceptions
 * at http://opencog.org/wiki/Licenses
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program; if not, write to:
 * Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#include <opencog/cogserver/mcp-eval/McpEval.h>
#include "McpShell.h"

using namespace opencog;

McpShell::McpShell(const Handle& hcsn) :
	_shellspace(AtomSpaceCast(hcsn->getAtomSpace()))
{
	normal_prompt = "mcp> ";
	abort_prompt = "mcp> ";
	pending_prompt = "... ";

	show_prompt = true;
	_name = "mcp";
}

McpShell::~McpShell()
{
}

GenericEval* McpShell::get_evaluator(void)
{
	return McpEval::get_evaluator(_shellspace);
}

/* ===================== END OF FILE ============================ */