Class VerilogFrontend


  • 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEBUG  
    • Constructor Summary

      Constructors 
      Constructor Description
      VerilogFrontend()  
    • Field Detail

      • DEBUG

        public static boolean DEBUG
    • Constructor Detail

      • VerilogFrontend

        public VerilogFrontend()
    • Method Detail

      • getCurrentFileName

        public java.lang.String getCurrentFileName()
        Returns the name of the file being processed by the front-end.
        Returns:
        the name of the file.
      • addPath

        public void addPath​(java.lang.String path)
      • isDefined

        public boolean isDefined​(java.lang.String key)
      • isHidden

        public boolean isHidden()
      • onDefine

        public void onDefine​(java.lang.String key,
                             java.lang.String val,
                             java.lang.String defParams)
      • onUndef

        public void onUndef​(java.lang.String key)
      • onIfdef

        public void onIfdef​(java.lang.String key)
      • onIfndef

        public void onIfndef​(java.lang.String key)
      • onElse

        public void onElse()
      • onElsif

        public void onElsif​(java.lang.String key)
      • onEndif

        public void onEndif()
      • expand

        public java.lang.String expand​(java.lang.String key,
                                       java.lang.String params)
      • onBeginKeywords

        public void onBeginKeywords​(java.lang.String versionSpecifier)
      • onBeginKeywords

        public void onBeginKeywords​(VerilogStandard standard)
      • onEndKeywords

        public void onEndKeywords()
      • isAllowed

        public boolean isAllowed​(VerilogStandard keywordStandard)
      • startLexer

        public org.antlr.runtime.TokenSource startLexer​(java.util.List<java.lang.String> filenames)
      • includeFile

        public void includeFile​(java.lang.String filename)
      • startSublexer

        public void startSublexer​(org.antlr.runtime.CharStream chars)
      • lexExpand

        public void lexExpand​(java.lang.String substitution)
      • lexInclude

        public void lexInclude​(java.lang.String filename)
      • startParser

        public org.antlr.runtime.tree.CommonTree startParser​(org.antlr.runtime.CommonTokenStream tokens)
                                                      throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • startParser

        public org.antlr.runtime.tree.CommonTree startParser​(org.antlr.runtime.TokenSource source)
                                                      throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • startBuilder

        public VerilogNode startBuilder​(org.antlr.runtime.tree.CommonTreeNodeStream nodes)
                                 throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • startBuilder

        public VerilogNode startBuilder​(org.antlr.runtime.tree.CommonTree tree)
                                 throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • loadLibrary

        public void loadLibrary​(java.lang.String filename)
      • start

        public VerilogNode start​(java.util.List<java.lang.String> filenames)
                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • start

        public VerilogNode start​(java.lang.String[] filenames)
                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException