
com.thesett.aima.logic.fol.wam.printer.UnoptimizedByteCodePrinter Maven / Gradle / Ivy
/*
* Copyright The Sett Ltd, 2005 to 2014.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.thesett.aima.logic.fol.wam.printer;
import com.thesett.aima.logic.fol.Clause;
import com.thesett.aima.logic.fol.Predicate;
import com.thesett.aima.logic.fol.VariableAndFunctorInterner;
import com.thesett.aima.logic.fol.compiler.PositionalTermTraverser;
import com.thesett.aima.logic.fol.wam.compiler.WAMCompiledPredicate;
import com.thesett.aima.logic.fol.wam.compiler.WAMCompiledQuery;
import com.thesett.aima.logic.fol.wam.compiler.WAMInstruction;
import com.thesett.common.util.doublemaps.SymbolTable;
import com.thesett.text.api.model.TextTableModel;
/**
* ByteCodePrinter prints the compiled bytecode in its unoptimzed state.
*
*
CRC Card
* Responsibilities Collaborations
* Print the unoptimized compiled byte code.
*
*
* @author Rupert Smith
*/
public class UnoptimizedByteCodePrinter extends BasePrinter
{
/**
* Creates a printer.
*
* @param interner The name interner.
* @param symbolTable The compiler symbol table.
* @param traverser The positional context traverser.
* @param column The column to print to.
* @param table The table to inform of cell sizes and positions.
*/
public UnoptimizedByteCodePrinter(VariableAndFunctorInterner interner,
SymbolTable© 2015 - 2025 Weber Informatics LLC | Privacy Policy