Helpful Tools ------------- vsg_parser ========== :code:`vsg_parser` is a tool which will show the mapping of tokens to a given file. It is located in the bin directory and can be invoked with: .. code-block:: bash $ bin/vsg_parser -f This is the output when ran against the :code:`tests/architecture/rule_001_test_input.vhd` file: .. code-block:: text -------------------------------------------------------------------------------- 0 | -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- 2 | architecture RTL of FIFO is begin end architecture RTL; -------------------------------------------------------------------------------- 3 | -------------------------------------------------------------------------------- 4 | -- This should fail -------------------------------------------------------------------------------- 5 | -------------------------------------------------------------------------------- 6 | architecture RTL of FIFO is -------------------------------------------------------------------------------- 7 | -------------------------------------------------------------------------------- 8 | begin -------------------------------------------------------------------------------- 9 | -------------------------------------------------------------------------------- 10 | end architecture RTL; Each line is printed and then each token is listed in the order they appear on the line. Whitespace tokens can be shown using the :code:`-w` option. :code:`vsg_parser` can be useful in rule generation to determine how vsg is assigning token types.