Commit Graph

58 Commits

Author SHA1 Message Date
Jukka Hertzog 1ffc72c5d1
Merge branch 'jeremiah-c-leary:master' into issue-1232 2024-11-27 14:02:56 +00:00
Jeremiah Leary 9297b3a6cf
Issue#1339: Improving detection of attribute_name productions. (#1340) 2024-11-26 09:37:52 -06:00
Jukka Hertzog 6e92361fd4
Issue#1232: Update classification_results.txt for port_clause 2024-11-11 09:45:27 +00:00
Jukka Hertzog f6e2bca6e4
Issue#1232: Update classification_results.txt for interface_signal_declaration 2024-11-11 09:43:42 +00:00
Jukka Hertzog 7ea9d58c1b
Issue#1232: Update classification_results.txt for `generic_clause` 2024-11-11 09:42:53 +00:00
JHertz5 cf13383d7b Merge remote-tracking branch 'origin/master' into issue-1232 2024-11-10 23:19:37 +00:00
Jukka Hertzog c65927224b
Issue#1304: Corrected misplaced classification tests (#1305)
* Issue#1304: Moved classification test inputs. Added interfaces to let parser not crash in clauses

* Issue#1304: Added expected results for new classification tests.

* Issue#1304: Updated port clause expected result.
2024-11-10 07:47:03 -06:00
JHertz5 5cd819455b Issue#1232: Updated classification results. 2024-10-15 11:42:59 +01:00
JHertz5 deebeeca7f
Merge branch 'jeremiah-c-leary:master' into issue-1232 2024-10-15 10:54:33 +01:00
JHertz5 33a2ae7559
Issue#1241: Reduced duplication in token classification tests (#1242)
* Issue#1241: Added meta test that tests all token classifications available.

* Issue#1241: Added classification result for resolution indications.

* Issue#1241: Removed now-redundant test files.

* Issue#1241: Formatting update.

* Issue#1236: Improved LRM name list acquisition.

* Issue#1241: Updated class names for consistency.

* Issue#1241: Improved safety of automated test name generation.

* Issue#1241: Simplified function name.

* Issue#1241: Duplication reduction.

* Issue#1241: Efficiency improvement.

* Issue#1241: Refactored code to be more clean by using pathlib's features.

* Issue#1241: Formatting.

* Issue#1241: Delete tests/vhdlFile/test_bit_string_literal.py, which now duplicates test_token.py.
2024-10-13 18:54:13 -05:00
JHertz5 124be04fec
Issue#1243: Fixed external names parsing bug (#1244)
* Issue#1243: Updated external name classification_test_input.vhd to expose bug.

* Issue#1243: Updated classification_results.txt to match desired output

* Issue#1243: Updated external_signal_name.py to fix bug.

* Issue#1243: Updated external_variable_name.py to fix bug.

* Issue#1243: Updated external_constant_name.py to fix bug.

* Issue#1243: Fixed external_variable_name.py.

* Issue#1243: Minor simplification in external name classification

* Issue#1243: Minor simplification in external name classification

* Issue#1243: Minor simplification in external name classification
2024-10-13 08:45:43 -05:00
JHertz5 b533014112
Issue#1232: Update classification_results.txt for bit_string_literal 2024-10-08 10:01:30 +01:00
JHertz5 4e6fe08b5c
Merge branch 'jeremiah-c-leary:master' into issue-1232 2024-10-08 09:51:57 +01:00
JHertz5 ce86655850
Issue#1236: Rule for case in hexadecimal constants and base specifier (#1237)
* Issue#1236: Updated parser to recognise bit string literals.

* Issue#1236: Added rules bit_string_literal_500 and bit_string_literal_501.

* Issue#1236: Updated bit string literal tokens to combine quote tokens into bit_value string token.

* Issue#1236: Updated case_utils to add exeption for bit string literals.

* Issue#1236: Updated parser to separate bit_string_literal integer token from bit_string_literal base_specifier token.

* Issue#1236: Added test for bit_string_literal classification.

* Issue#1236: Added test for bit_string_literal_500.

* Issue#1236: Added test for bit_string_literal_501.

* Issue#1236: Updated rules and rule tests.

* Issue#1236: Style updates.

* Issue#1236: Updated classification result.

* Issue#1236: Changed bit_string_literal_501 to default to upper case.

* Issue#1236: Updated tests for bit_string_literal_501 default to upper case change.

* Issue#1236: Formatting changes.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Code refactoring to reduce duplication.

* Issue#1236: Code refactoring to improve names and remove unused code.

* Issue#1236: Formatting changes.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Added bit string literal rules to top-level rules documentation.

* Issue#1236: Used compiled regular expressions to improve bit_string_literal parsing.

* Issue#1236: Changed regex strings to raw strings to avoid warnings about invalid escape sequences.

* Issue#1236: Removed unused import.
2024-10-07 20:09:53 -05:00
JHertz5 a4f1feed43 Issue#1232: Updated classification results for test_external_name. 2024-10-03 21:55:31 +01:00
JHertz5 6f0c8f3a49 Revert "Issue#1232: Updated classification results for test_external_name."
This reverts commit daf3449fd5.
2024-10-03 21:54:37 +01:00
JHertz5 daf3449fd5 Issue#1232: Updated classification results for test_external_name. 2024-10-03 21:44:07 +01:00
JHertz5 c8c7e328ee Merge remote-tracking branch 'origin/master' into issue-1232 2024-10-03 21:40:45 +01:00
Jeremiah Leary da84a1be1f
Issue#1170: Adding rules to enforce spaces before generic map and port map assignment operators. (#1173)
* Issue#1170:  Adding rules to enforce spaces before generic map and port map assignment operators.

* Adding ability to parse external names.

  1)  Added parsing of external names
  2)  Added external_signal_name rules

* Adding parsing of external names to productions.

* Fixing rule identifiers.

* Adding external_constant_name rules.

* Adding external_variable_name rules.

* Adding classification of indexes of external names.

* Style issue updates and fixing test.
2024-10-02 21:47:19 -05:00
JHertz5 3c3497d9ce Issue#1232: Updated classification results where parser can no longer guarantee a type_mark. 2024-09-28 18:47:46 +01:00
JHertz5 c7939bf0e5 Issue#1232: Updated classification results. 2024-09-28 17:45:16 +01:00
Jeremiah Leary 5647dbcb35
Issue#911: Improving detection of unary logical operators. (#1046)
* Issue#911:  Improving detection of unary logical operators.

* Adding descriminator for keywords before unary operator.

* Fixing style issues.
2024-07-11 07:26:01 -05:00
Jeremiah Leary ba8bfa23e8
Issue#1188: single comments with */ would be incorrectly classified and fail to parse. (#1191) 2024-07-09 20:36:59 -05:00
Jeremiah Leary 872884d33c
Issue#1168: Fixing mis-classification formal parameters in procedure specifications. (#1169) 2024-05-03 07:14:54 -05:00
Alon Bar-Lev baf22da660 style: apply end-of-file-fixer
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev c22a86025f style: apply black
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev 5b4bae04aa style: apply isort
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev b8c49b5946 style: python encoding
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev 6aca7f56d5 style: remove trailing spaces
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev f9c2653e54 style: apply codespell
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:34 +02:00
Alon Bar-Lev 8f9dc637ee tests: move out of vsg
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-23 18:48:35 +02:00
Jeremiah Leary a6ea0758a8 Restructered directory using:
http://python-packaging.readthedocs.io/en/latest/index.html

as a reference
2017-09-29 21:57:28 -05:00
Jeremiah Leary c701bb76de Updates for package rules:
1)  Added package rules
  2)  Updated vhdlFile when running against examples
  3)  Bare bones package body checks
2017-09-29 18:34:39 -05:00
Jeremiah Leary 9ff53e0412 Updates for package rules:
1)  Added package attributes to line class
  2)  Added package attribute assignments to vhdlFile
  3)  Added indent tests to case, component and if rules
2017-09-29 10:54:35 -05:00
Jeremiah Leary b5192c3395 Updates to instantion rules:
1)  Added rules for generic maps
2017-09-28 09:13:00 -05:00
Jeremiah Leary 25b2cead27 Updates for rules:
1)  Updated additional rules after running against examples.
2017-09-23 17:13:27 -05:00
Jeremiah Leary 74928d9914 Updates to rules:
1)  Updated rules after running against examples
2017-09-23 16:02:39 -05:00
Jeremiah Leary 6ba5ca2984 Updates for instantiation rules:
1)  Initial set of rules for instantiations
2017-09-23 10:15:47 -05:00
Jeremiah Leary 7225da8d71 Updates to port rules:
1)  Made port rules work on component port maps
2017-09-22 11:44:33 -05:00
Jeremiah Leary 7c4bed2aea Updates for component rules:
1)  Added component attribute to line class
  2)  Added populating line class component attributes to vhdlFile class
2017-09-21 10:50:43 -05:00
Jeremiah Leary 2d3d0ae376 Updates for various rules after testing with new example:
1)  Updated port rules
  2)  Updated whitespace rules
  3)  Updated vhdlFile class
  4)  Test cases created for issues not found when testing against example
2017-09-20 21:59:01 -05:00
Jeremiah Leary 8043163f97 Updates for entity rules:
1)  Added rule to check for alignment of :'s in port declarations
  2)  Fix issue with assigning isPortDeclaration to comment lines
2017-09-17 16:58:03 -05:00
Jeremiah Leary 575df91575 Updates for concurrent rules:
1)  Added checking for alignment of <= in sequential groups of concurrent assignments
2017-09-17 14:19:38 -05:00
Jeremiah Leary 0960663cd9 Updates for sequential rules:
1)  Adding sequential rules
  2)  Added sequential rules to rule_list
2017-09-16 08:31:15 -05:00
Jeremiah Leary e4365f087c Updates for sequential rules:
1)  Added sequential attributes to line class
  2)  Populated sequential attributes with vhdlFile class

NOTE:  Still need to write rules for sequential statements.
2017-09-14 21:35:14 -05:00
Jeremiah Leary 1a6498d289 Updates for comment rules:
1) Added comment rules
2017-09-14 10:55:01 -05:00
Jeremiah Leary 1ba2b544f5 Updates for case rules:
1)  Added case rules
  2)  Refactored names on several rule class methods
2017-09-13 15:06:37 -05:00
Jeremiah Leary f1bdd6fef9 Updates for if rules:
1)  Added If rules
2017-09-12 15:27:54 -05:00
Jeremiah Leary 47500d9f26 Updates for process rules:
1)  Updated to check for proper blank lines in the process declarative area.
2017-09-12 07:58:26 -05:00
Jeremiah Leary 74fa7abbac Updates for process rules:
1)  Adding rules for spacing around keywords
2017-09-11 19:54:06 -05:00