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
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
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
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
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
Jeremiah Leary
75bb29e6a7
Updates for process rules:
...
1) Added more rules for processes
2017-09-11 12:28:21 -05:00
Jeremiah Leary
11381cff8d
Updates for concurrent rules:
...
1) Remove labels from concurrent assignments
2) Ensure at least one space before <=
2017-09-11 06:52:36 -05:00
Jeremiah Leary
543e3620c3
Updates for new method:
...
1) Updated bug in architecture rules after running against examples
2) Updated rule list to handle split of entity rules into entity, port, and generic rules
3) Updated main program to handle new method
2017-09-10 22:09:24 -05:00
Jeremiah Leary
7bab75b081
Updates for new method:
...
1) Refactored concurrent rules
2) Updated tests for new structure
2017-09-10 21:34:22 -05:00
Jeremiah Leary
4ea8fe968d
Updates for new method:
...
1) Refactored process rules
2) Updated testing for new structure
2017-09-10 21:00:41 -05:00
Jeremiah Leary
f34de3120a
Updates for new method:
...
1) Refactored constant rules
2) Updates testing to match new directory structure
2017-09-10 20:12:48 -05:00
Jeremiah Leary
1a7cd0aaa7
Updates for test structure:
...
1) Updated test files to run at the top level using the following command:
python -m unittest discover
NOTE: More tests need to be converted to the new method.
When they are converted, they will be updated to match the new test structure.
2017-09-10 19:53:24 -05:00
Jeremiah Leary
0216d76fbb
Updates for test directory restructuring:
...
1) Moved tests out from under modules
2017-09-10 19:04:01 -05:00