Commit Graph

227 Commits

Author SHA1 Message Date
Jeremiah Leary e1b19065b5
Updates for issue #691 (#692)
* Updates for issue #691

A conditional variable assignment was being classified as a conditional waveform assignment.

  1)  Added to test to expose the issue
  2)  sequential_statement checks for variable assignments before waveform assignments

* Updates for issue #691

Fixing unrelated test that occasionally fails due to order of file analysis.
2021-12-04 08:24:23 -06:00
Jeremiah Leary 5fa511698f Updates for issue #569
A single space character literal was being classified as a whitespace token.

  1)  Updated test to expose the issue
  2)  Updated classifier to not classify a space character literal as a whitespace token
2021-04-29 19:52:54 -05:00
Jeremiah Leary de5338decb Updates for issue 555
Use clause with double quotes was not making it through the parser.

  1)  Updated tests to find expose the issue
  2)  Updated code to correctly classify use clauses with double quotes
2021-04-24 14:06:40 -05:00
Jeremiah Leary e5be92f503 Adding initial configuration parsing.
NOTE:  Still needs a lot of work.
2021-03-19 19:42:37 -05:00
Jeremiah Leary c237e1c60c Updates for Codacy.
Minor updates.
2021-03-13 08:19:44 -06:00
Jeremiah Leary 52654175c7 Updates for Codacy:
Removed unused imports.
2021-03-13 07:53:42 -06:00
Jeremiah Leary a97d9f092f Updates for Codacy issues:
1)  Removing trailing whitespace
  2)  Removing unused code
2021-03-10 08:23:50 -06:00
Jeremiah Leary 9ba368de9a
Merge pull request #529 from Emilv2/unused_imports
Remove unused imports and unused code
2021-03-10 08:01:49 -06:00
Jeremiah Leary fa3e1d9f1c Updates for issue #532:
Process classifer was not honoring the end of a block statement.

  1)  Updated tests to expose the issue
  2)  Updated process classifier
2021-02-13 09:27:55 -06:00
Emil Vanherp 103d028568
remove unused imports 2021-02-10 23:53:34 +01:00
Jeremiah Leary 42f8f24c5b Updates for issue #515:
Parser would fail on loop statements if preceeded by a simple procedure/function call.

  1)  Updated tests
  2)  Updated interation_scheme parser
2021-01-11 08:56:50 -06:00
Jeremiah Leary ed3b214e40 Updates for issue #513
Adding support for pragmas vhdl_comp_on and vhdl_comp_off.
The VSG parser will ignore anything between those pragmas.

  1)  Added test
  2)  Added pragma token class
  3)  Added pragma parser
2021-01-09 13:36:27 -06:00
Jeremiah Leary 8086380440 Updates for issue #516:
The file_logical_name was not being properly parsed.

  1)  Updated test to expose issue
  2)  Updated parser to handle file_logical_name expressions
2021-01-08 19:25:01 -06:00
Jeremiah Leary f7b4aae56e Updates for issue #514:
Parser did not accept infinite loops.

  1)  Updated test to expose issue
  2)  Updated parser to allow for infinite loops
2021-01-08 17:26:28 -06:00
Jeremiah Leary fa5acc0794 Updates for issue #511
Parsing of parenthesis in expressions and subtype indications were improved.

  1)  Updated tests
  2)  Ensured all calls to classify_until were lists
  3)  Updated expression and subtype_indication classifiers
2021-01-08 08:51:12 -06:00
Jeremiah Leary 9b7ba24e0b Updates for issue #510:
subtype_indication classifier was incorrectly handling the closing parenthesis.

  1)  Updated tests
  2)  Updated subtype_indication classifier
2021-01-05 19:36:40 -06:00
Jeremiah Leary b9ff42e5b1 Updates for issue #508:
Procedure declarations without a formal parameter list would fail to classify.

  1)  Updated test
  2)  Updated procedure and function classifiers
2021-01-04 17:58:21 -06:00
Jeremiah Leary 1a9da639d3 Updates for issue #503:
Preprocessor commands were being replaced with empty strings.
2020-12-21 15:26:30 -06:00
Jeremiah Leary 585208ad61 Updates for issue #503:
Adding ability to parse preprocessor commands embedded in VHDL code.

  1)  Added preprocessor token
  2)  Added preprocessor classifier
2020-12-21 14:15:48 -06:00
Jeremiah Leary 536abbedd7 Updates for issue #401:
Expanding rules for attributes:

  1)  Removed current attribute rules
  2)  Added rules for:
      a) attribute_declaration
      b) attribute_specification
      c) entity_specification
  3)  Added documentation
  4)  Added tests
  5)  Refactored base rules to allow for lists of token types
      a) single_space_after_token
      b) single_space_before_token
2020-12-18 14:13:40 -06:00
Jeremiah Leary e94964d883 Updates for issue #497
Adding support for parsing of protected types.

  1)  Added classification tests
  2)  Added parsing of protected types
  3)  Added protected type tokens
2020-12-17 14:58:48 -06:00
Jeremiah Leary a18ab6414d Updates for issue #495:
Parser could not handle alias with parenthesis in the name.

  1)  Updated test to expose the issue
  2)  Updated parser to handle parenthesis in the name
2020-12-17 13:20:50 -06:00
Jeremiah Leary e80c16da15 Updates for issue #429
Improving error message reporting while parsing generate statements.
2020-12-17 10:51:57 -06:00
Jeremiah Leary 7a25ded9ef Updates for issues #457 and #444:
Adding block rules.

  1)  Added documentation
  2)  Added tests
  3)  Added initial block rules
2020-12-10 13:48:21 -06:00
Jeremiah Leary 1f2917478b Updates for issue #476:
The classifier concurrent_selected_signal_assignment was being too gready.

  1)  Added check for the keyword *end* before classifying.
2020-12-09 19:19:13 -06:00
Jeremiah Leary 089ba52904 Updates for issue #378
Adding rules for package body.

  1)  Added 22 package_body rules
  2)  Added documentation
  3)  Added tests
2020-12-09 16:51:23 -06:00
Jeremiah Leary a7c7dda433 Adding more exceptions for detecting concurrent procedures. 2020-12-05 10:25:25 -06:00
Jeremiah Leary 4721ae0322 Updates for Codacy flagged issues. 2020-12-04 13:27:19 -06:00
Jeremiah Leary 7bdad636b5 Fixing issue where loop_statement was mis-classifying a wait for statement after an else keyword. 2020-11-25 11:50:40 -06:00
Jeremiah Leary f7fe1122b1 More updates for Codacy checks. 2020-11-25 09:33:32 -06:00
Jeremiah Leary 379d5df847 Removing trailing spaces. 2020-11-25 08:26:54 -06:00
Jeremiah Leary 2ed37e75c9 Updates for CodeClimate. 2020-11-25 08:17:51 -06:00
Jeremiah Leary 39dce36ec8 Additional Codacy Updates. 2020-11-24 18:19:42 -06:00
Jeremiah Leary a0a9813d89 Codacy fixes. 2020-11-24 17:14:00 -06:00
Jeremiah Leary 8e7d38f68d Updating discrete_range to handle functions and parenthesis. 2020-11-23 16:08:48 -06:00
Jeremiah Leary d76c673437 Renaming classify_new module to classify. 2020-11-23 09:24:59 -06:00
Jeremiah Leary 1252231d4d Removing old classifiers due to refactoring for new parser. 2020-11-09 21:00:04 -06:00
Jeremiah Leary 2970b0a182 Continuing to remove remanants of older parser. 2020-09-19 13:14:44 -05:00
Jeremiah Leary a95bd04873 Replacing older parser with newer one:
1)  Called out parsers from classify_new instead of classify
  2)  Updated invalid test inputs
  3)  Updated test results
  4)  Removed unused files
2020-09-19 07:46:35 -05:00
Jeremiah Leary 1e8c17b44b Adding parsing of file_type_definition. 2020-09-06 18:05:43 -05:00
Jeremiah Leary 9852b3e5f2 Adding entity_declaration parsing. 2020-09-06 08:41:21 -05:00
Jeremiah Leary a8e914b5d9 Adding parsing of package_declaration. 2020-09-05 19:38:43 -05:00
Jeremiah Leary 3492c93967 Adding package_body parsing. 2020-09-04 15:50:24 -05:00
Jeremiah Leary 625c6ee579 Adding process_statement to new parser. 2020-09-03 20:08:38 -05:00
Jeremiah Leary 9ed88ca9a9 Adding architecture_body and entity_declaration parsing with new method. 2020-08-21 07:48:25 -05:00
Jeremiah Leary 4b1fb9c144 Attempting new method to classify tokens using a forward looking algorithm. 2020-08-19 21:34:30 -05:00
Jeremiah Leary cfb179e757 Adding block_statement objects and improved testing method for objects. 2020-08-17 17:25:49 -05:00
Jeremiah Leary 237539e2fc Refactoring architecture_body classifier to match current methods. 2020-08-15 16:06:48 -05:00
Jeremiah Leary eb889f5064 Adding process_statement objects. 2020-08-15 15:43:41 -05:00
Jeremiah Leary faf8a50913 Adding concurrent_procedure_call_statement objects. 2020-08-15 10:47:18 -05:00