• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
            • Parse-clocking
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
            • Parse-asserts
            • Vl-maybe-parse-lifetime
            • Parse-dpi-import-export
            • Parse-ports
            • Parse-timeunits
            • Seq
            • Parse-packages
              • Vl-parse-package-declaration
              • Vl-parse-genelements-or-classes-until
              • Vl-skip-through-endpackage
              • Vl-parse-genelement-or-class
              • Vl-make-package-with-parse-error
              • Parse-eventctrl
            • Vl-load-merge-descriptions
            • Vl-find-basename/extension
            • Vl-load-file
            • Vl-loadresult
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Parse-packages

    Vl-make-package-with-parse-error

    Signature
    (vl-make-package-with-parse-error name minloc maxloc err tokens) 
      → 
    package
    Arguments
    name — Guard (stringp name).
    minloc — Guard (vl-location-p minloc).
    maxloc — Guard (vl-location-p maxloc).
    err — Guard (vl-warning-p err).
    tokens — Guard (vl-tokenlist-p tokens).
    Returns
    package — Type (vl-package-p package).

    Definitions and Theorems

    Function: vl-make-package-with-parse-error

    (defun vl-make-package-with-parse-error
           (name minloc maxloc err tokens)
     (declare (xargs :guard (and (stringp name)
                                 (vl-location-p minloc)
                                 (vl-location-p maxloc)
                                 (vl-warning-p err)
                                 (vl-tokenlist-p tokens))))
     (let ((__function__ 'vl-make-package-with-parse-error))
      (declare (ignorable __function__))
      (b*
       ((warn2
         (make-vl-warning
          :type :vl-parse-error
          :msg "[[ Remaining ]]: ~s0 ~s1.~%"
          :args
          (list
            (vl-tokenlist->string-with-spaces (take (min 4 (len tokens))
                                                    (list-fix tokens)))
            (if (> (len tokens) 4) "..." ""))
          :fatalp t
          :fn __function__)))
       (make-vl-package :name name
                        :minloc minloc
                        :maxloc maxloc
                        :warnings (list err warn2)))))

    Theorem: vl-package-p-of-vl-make-package-with-parse-error

    (defthm vl-package-p-of-vl-make-package-with-parse-error
      (b* ((package (vl-make-package-with-parse-error
                         name minloc maxloc err tokens)))
        (vl-package-p package))
      :rule-classes :rewrite)