public class VerilogSyntaxBackend
extends java.lang.Object
VerilogSyntaxBackend
is a basic class for AST-level back-ends.
The start
method should be override in a subclass.
Modifier | Constructor and Description |
---|---|
protected |
VerilogSyntaxBackend(java.lang.String name)
Creates an abstract back-end.
|
|
VerilogSyntaxBackend(java.lang.String name,
VerilogNodeVisitor visitor)
Creates a visitor-based back-end.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the back-end.
|
void |
start(VerilogNode root)
Processes the abstract syntax tree (AST).
|
protected VerilogSyntaxBackend(java.lang.String name)
name
- the back-end name.public VerilogSyntaxBackend(java.lang.String name, VerilogNodeVisitor visitor)
name
- the back-end name.visitor
- the user-defined visitor.public final java.lang.String getName()
public void start(VerilogNode root)
root
- the AST's root.