Lex-keywords
Handling of keywords in the lexer.
The lexer can be configured to accept different sets of
keywords. This allows us to, e.g., recognize different keywords depending on
the particular vl-edition-p we are implementing.
No matter which set of keywords is being used, the general strategy is the
same: when we encounter a keyword such as inout, we will produce a vl-plaintoken-p whose type is, e.g., :vl-kwd-inout.
Subtopics
- *vl-2012-keyword-table*
- *vl-2012-keyword-table-strict*
- Vl-lex-simple-identifier-or-keyword
- Match either a keyword or an ordinary, simple identifier.
- Vl-keyword-lookup
- Determine if a string is a Verilog keyword.
- *vl-2005-keyword-table*
- *vl-2005-keyword-table-strict*
- Vl-keyword-table-p
- Recognize any valid subset of the vl-full-keyword-table.
- *vl-2012-keywords*
- IEEE STD 1800-2012, Table B-1, Reserved Keywords.
- Vl-full-keyword-table
- A fast alist binding all currently supported keyword names to
their corresponding :vl-kwd-xxx symbols.
- Vl-make-keyword-table
- A keyword table binds the names of keywords (strings) to their
corresponding :vl-kwd-xxx symbols.
- *vl-extra-keywords*
- Special, extra keywords that are aren't part of the Verilog
standards, but are instead added by VL.
- *vl-2005-keywords*
- IEEE STD 1364-2005, Annex B, List of Keywords.