Project

General

Profile

Getting Started » History » Version 1

Alexander Kamkin, 05/05/2014 02:19 PM

1 1 Alexander Kamkin
h1. Getting Started
2
3
h2. Developing a Backend
4
5
<pre><code class="java">
6
package ru.ispras.verilog.parser.sample;
7
8
import ru.ispras.verilog.parser.VerilogBackend;
9
import ru.ispras.verilog.parser.model.*;
10
import ru.ispras.verilog.parser.walker.*;
11
12
/**
13
 * This class illustrates development of a Verilog back-end.
14
 *
15
 * @author <a href="mailto:kamkin@ispras.ru">Alexander Kamkin</a>
16
 */
17
public final class VerilogPrinter extends VerilogBackend
18
{
19
    /**
20
     * {@inheritDoc}
21
     */
22
    @Override
23
    public void start(final VerilogNode root)
24
    {
25
        VerilogTreeWalker walker = new VerilogTreeWalker(root, new VerilogNodePrinter());
26
        walker.start();
27
    }
28
}
29
</code></pre>