public final class VerilogFrontend
extends java.lang.Object
VerilogFrontend
implements the Verilog front-end.
The front-end includes the preprocessor, the lexer, the parser and the static analyzer
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
VerilogFrontend() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(java.lang.String path) |
java.lang.String |
expand(java.lang.String key) |
java.lang.String |
getCurrentFileName()
Returns the name of the file being processed by the front-end.
|
boolean |
isAllowed(VerilogStandard keywordStandard) |
boolean |
isDefined(java.lang.String key) |
boolean |
isHidden() |
void |
lexExpand(java.lang.String substitution) |
void |
lexInclude(java.lang.String filename) |
void |
onBeginKeywords(java.lang.String versionSpecifier) |
void |
onBeginKeywords(VerilogStandard standard) |
void |
onDefine(java.lang.String key,
java.lang.String val) |
void |
onElse() |
void |
onElsif(java.lang.String key) |
void |
onEndif() |
void |
onEndKeywords() |
void |
onIfdef(java.lang.String key) |
void |
onIfndef(java.lang.String key) |
void |
onUndef(java.lang.String key) |
VerilogNode |
start(java.util.List<java.lang.String> filenames) |
VerilogNode |
start(java.lang.String[] filenames) |
VerilogNode |
startBuilder(org.antlr.runtime.tree.CommonTree tree) |
VerilogNode |
startBuilder(org.antlr.runtime.tree.CommonTreeNodeStream nodes) |
org.antlr.runtime.TokenSource |
startLexer(java.util.List<java.lang.String> filenames) |
org.antlr.runtime.tree.CommonTree |
startParser(org.antlr.runtime.CommonTokenStream tokens) |
org.antlr.runtime.tree.CommonTree |
startParser(org.antlr.runtime.TokenSource source) |
void |
startSublexer(org.antlr.runtime.CharStream chars) |
public java.lang.String getCurrentFileName()
public void addPath(java.lang.String path)
public boolean isDefined(java.lang.String key)
public boolean isHidden()
public void onDefine(java.lang.String key, java.lang.String val)
public void onUndef(java.lang.String key)
public void onIfdef(java.lang.String key)
public void onIfndef(java.lang.String key)
public void onElse()
public void onElsif(java.lang.String key)
public void onEndif()
public java.lang.String expand(java.lang.String key)
public void onBeginKeywords(java.lang.String versionSpecifier)
public void onBeginKeywords(VerilogStandard standard)
public void onEndKeywords()
public boolean isAllowed(VerilogStandard keywordStandard)
public org.antlr.runtime.TokenSource startLexer(java.util.List<java.lang.String> filenames)
public void startSublexer(org.antlr.runtime.CharStream chars)
public void lexExpand(java.lang.String substitution)
public void lexInclude(java.lang.String filename)
public org.antlr.runtime.tree.CommonTree startParser(org.antlr.runtime.CommonTokenStream tokens) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public org.antlr.runtime.tree.CommonTree startParser(org.antlr.runtime.TokenSource source) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public VerilogNode startBuilder(org.antlr.runtime.tree.CommonTreeNodeStream nodes) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public VerilogNode startBuilder(org.antlr.runtime.tree.CommonTree tree) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public VerilogNode start(java.util.List<java.lang.String> filenames) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public VerilogNode start(java.lang.String[] filenames) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException