• 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
            • Lex-strings
            • Lex-identifiers
            • Vl-typo-uppercase-p
            • Vl-typo-number-p
            • Vl-typo-lowercase-p
            • Lex-numbers
            • Chartypes
            • Vl-lex
            • Defchar
            • Tokens
              • Vl-tokentype-p
              • Vl-inttoken-p
              • Vl-plaintoken-p
              • Vl-token->etext
              • Vl-token-p
              • Vl-idtoken-p
              • Vl-token->type
              • Vl-timetoken-p
              • Vl-stringtoken-p
              • Vl-sysidtoken-p
              • Vl-extinttoken-p
              • Vl-realtoken-p
              • Vl-kill-whitespace-and-comments
              • Vl-tokenlist->etext
              • Vl-tokenlist-p
              • Vl-tokenlist->string-with-spaces
              • Vl-idtoken-list-p
              • Vl-tokentypelist-p
              • Vl-token->breakp
              • Vl-token->loc
              • Vl-plaintokentypelist-p
              • Vl-tokenlistlist-p
              • Vl-token->string
            • Lex-keywords
            • Lexstate
            • Make-test-tokens
            • Lexer-utils
            • Lex-comments
            • Vl-typo-uppercase-list-p
            • Vl-typo-lowercase-list-p
            • Vl-typo-number-list-p
          • Parser
          • 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
  • Lexer

Tokens

Representation of tokens structures that are produced by the lexer.

Subtopics

Vl-tokentype-p
Vl-inttoken-p
Tokens for integer constants.
Vl-plaintoken-p
Tokens for whitespace, comments, operators, punctuation, and keywords.
Vl-token->etext
Get the original text for a token.
Vl-token-p
Token structure produced by our lexer.
Vl-idtoken-p
Tokens for ordinary identifiers.
Vl-token->type
Get the type of a token.
Vl-timetoken-p
Tokens for time literals, like 3ns or 45.617us.
Vl-stringtoken-p
Tokens for string literals.
Vl-sysidtoken-p
Tokens for system identifiers.
Vl-extinttoken-p
Tokens for unsized, unbased SystemVerilog integers, e.g., '0, '1, 'x, and 'z.
Vl-realtoken-p
Tokens for real numbers.
Vl-kill-whitespace-and-comments
Prepare a token list for parsing by removing whitespace and comment tokens, and construct a comment map from any comment tokens.
Vl-tokenlist->etext
Append together all the text for a list of tokens.
Vl-tokenlist-p
(vl-tokenlist-p x) recognizes lists where every element satisfies vl-token-p.
Vl-tokenlist->string-with-spaces
Join together a token list into a single string, putting a single space between each token.
Vl-idtoken-list-p
(vl-idtoken-list-p x) recognizes lists where every element satisfies vl-idtoken-p.
Vl-tokentypelist-p
(vl-tokentypelist-p x) recognizes lists where every element satisfies vl-tokentype-p.
Vl-token->breakp
Identify whether a token was the first token on a line.
Vl-token->loc
Get the starting location for a token.
Vl-plaintokentypelist-p
(vl-plaintokentypelist-p x) recognizes lists where every element satisfies vl-plaintokentype-p.
Vl-tokenlistlist-p
(vl-tokenlistlist-p x) recognizes lists where every element satisfies vl-tokenlist-p.
Vl-token->string
Get the original text that gave rise to any token, as a string.