Project

General

Profile

Getting Started » History » Revision 2

Revision 1 (Alexander Kamkin, 05/05/2014 02:19 PM) → Revision 2/11 (Alexander Kamkin, 05/05/2014 02:52 PM)

h1. Getting Started 

 h2. Developing a Backend 

 <pre><code class="java"> 
 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(); 
     } 
 } 
 </code></pre> 

 h2. Registering a Backend