• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
              • Defparser
              • Vl-endinfo-p
              • Vl-match-token
              • Vl-match-some-token
              • Vl-match-any-except
              • Vl-parse-error
              • Vl-match
              • Vl-type-of-matched-token
              • Vl-tokstream-backup-p
              • Vl-maybe-match-token
              • Vl-parse-warning
              • Vl-match-any
              • Vl-linestart-indent
              • Vl-current-loc
              • Vl-choose-parse-error
              • Vl-parse-endblock-name
              • Vl-tokenlist-fix
              • Vl-lookahead-is-some-token?
              • Vl-tokstream-fix
              • Vl-is-token?
              • Vl-is-some-token?
              • Vl-add-context-to-parser-warning
              • Vl-lookahead-is-token?
              • Vl-tokstream-save
              • Vl-tokstream->tokens
              • Vl-tokstream-restore
              • Vl-tokstream-add-warning
              • Vl-tokstream->pstate
              • Vl-tokstream->position
              • Expand-defparsers
              • Vl-tokstream-pop
              • *vl-default-token*
            • 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
            • 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
  • Parser

Parse-utils

Supporting functions for the parser.

Subtopics

Defparser
Core macro for writing recursive-descent parsers, used throughout VL's parsing routines.
Vl-endinfo-p
Temporary structure created to parse named endings like endmodule : foo.
Vl-match-token
Compatible with seq. Consume and return a token of exactly some particular type, or cause an error if the desired kind of token is not at the start of the input stream.
Vl-match-some-token
Compatible with seq. Consume and return a token if it has one of several types. Cause an error if the first token isn't one of the acceptable types.
Vl-match-any-except
Compatible with seq. Match any token that is not of the listed types. Causes an error on EOF.
Vl-parse-error
Compatible with seq. Produce an error message (stopping execution) that includes the current location.
Vl-match
Compatible with seq. Get the first token, no matter what kind of token it is. Only usable when you know there is a token there (via the guard).
Vl-type-of-matched-token
Reasoning trick. Alias for the type of the token returned by vl-match-some-token.
Vl-tokstream-backup-p
Vl-maybe-match-token
Compatible with seq. Consume and return a token if it is of the given type, but if not, don't consume anything and return nil.
Vl-parse-warning
Compatible with seq. Produce a non-fatal warning (not an error, doesn't stop execution) that includes the current location.
Vl-match-any
Compatible with seq. Get the first token, no matter what kind of token it is. Causes an error on EOF.
Vl-linestart-indent
Compatible with seq. If we are at the first token on a line, return its column number. Otherwise return NIL.
Vl-current-loc
Compatible with seq. Get the current location.
Vl-choose-parse-error
Vl-parse-endblock-name
Vl-tokenlist-fix
Vl-lookahead-is-some-token?
Check whether the current token is one of some particular types.
Vl-tokstream-fix
Vl-is-token?
Check whether the current token has a particular type.
Vl-is-some-token?
Check whether the current token is one of some particular types.
Vl-add-context-to-parser-warning
Vl-lookahead-is-token?
Check whether the current token has a particular type.
Vl-tokstream-save
Vl-tokstream->tokens
Vl-tokstream-restore
Vl-tokstream-add-warning
Vl-tokstream->pstate
Vl-tokstream->position
Expand-defparsers
Vl-tokstream-pop
*vl-default-token*