Project

General

Profile

Actions

Getting Started » History » Revision 2

« Previous | Revision 2/11 (diff) | Next »
Alexander Kamkin, 05/05/2014 02:52 PM


Getting Started

Developing a Backend

package ru.ispras.verilog.parser.sample;

import ru.ispras.verilog.parser.VerilogBackend;
import ru.ispras.verilog.parser.model.*;
import ru.ispras.verilog.parser.walker.*;

/**
 * This class illustrates development of a Verilog back-end.
 *
 * @author <a href="mailto:kamkin@ispras.ru">Alexander Kamkin</a>
 */
public final class VerilogPrinter extends VerilogBackend
{
    /**
     * {@inheritDoc}
     */
    @Override
    public void start(final VerilogNode root)
    {
        VerilogTreeWalker walker = new VerilogTreeWalker(root, new VerilogNodePrinter());
        walker.start();
    }
}

Registering a Backend

Updated by Alexander Kamkin over 10 years ago · 11 revisions