From 9db3661c42065fd4b83cc9e29d260e448ff69509 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 14 Jun 2021 00:03:35 +0200 Subject: [PATCH 01/11] Bumped version to v0.6.4. Increased dependencies. Added Dependabot config file. --- .github/dependabot.yml | 15 +++++++++++++++ .idea/misc.xml | 2 +- .idea/pyVHDLParser.iml | 2 +- doc/conf.py | 2 +- requirements.txt | 6 +++--- setup.py | 2 +- 6 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..0896e81db --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: +- package-ecosystem: pip + directory: "/" + target-branch: dev + commit-message: + prefix: "[Dependabot]" + labels: + - Dependencies + assignees: + - Paebbels + reviewers: + - Paebbels + schedule: + interval: daily diff --git a/.idea/misc.xml b/.idea/misc.xml index 2a75f480b..bfd101b14 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/pyVHDLParser.iml b/.idea/pyVHDLParser.iml index 047a923a7..f0b0d094c 100644 --- a/.idea/pyVHDLParser.iml +++ b/.idea/pyVHDLParser.iml @@ -5,7 +5,7 @@ - + diff --git a/doc/conf.py b/doc/conf.py index 537e1e364..ed916f55b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -42,7 +42,7 @@ def _LatestTagName(): # The full version, including alpha/beta/rc tags version = "0.6" # The short X.Y version. -release = "0.6.3" # The full version, including alpha/beta/rc tags. +release = "0.6.4" # The full version, including alpha/beta/rc tags. try: if _IsUnderGitControl: latestTagName = _LatestTagName()[1:] # remove prefix "v" diff --git a/requirements.txt b/requirements.txt index bcf7a9551..b4a1ecfa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -colorama>=0.4.3 +colorama>=0.4.4 py-flags>=1.1.4 pydecor>=2.0.1 pyExceptions>=1.0.1 -pyAttributes>=2.0.1 +pyAttributes>=2.1.0 pyCallBy>=1.1.1 pyTerminalUI>=1.3.4 -pyVHDLModel>=0.8.1 +pyVHDLModel>=0.9.0 diff --git a/setup.py b/setup.py index 1334a4f30..ad24ca580 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ # Assemble all package information setuptools_setup( name=projectName, - version="0.6.3", + version="0.6.4", author="Patrick Lehmann", author_email="Paebbels@gmail.com", From aa6fc9eda3553660ebb5cf92574a7cb7804a5bdd Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 14 Jun 2021 00:04:11 +0200 Subject: [PATCH 02/11] Added continue-on-error rules. --- .github/workflows/Pipeline.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 85049cc75..77fc6c5ee 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -92,17 +92,16 @@ jobs: pip install -r tests/requirements.txt - name: Collect coverage - if: ${{ always() }} + continue-on-error: true run: | python -m pytest -rA --cov=.. --cov-config=tests/.coveragerc tests/unit - name: Convert to cobertura format - if: ${{ always() }} run: | coverage xml - name: Publish coverage at CodeCov - if: ${{ always() }} + continue-on-error: true uses: codecov/codecov-action@v1 with: file: ./coverage.xml @@ -110,7 +109,7 @@ jobs: env_vars: PYTHON - name: Publish coverage at Codacy - if: ${{ always() }} + continue-on-error: true uses: codacy/codacy-coverage-reporter-action@master with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} From 57adc86b4c2958868a15b339b7ec853c652ef221 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 14 Jun 2021 00:15:43 +0200 Subject: [PATCH 03/11] Increased other dependencies. Added news for June 2021. --- doc/conf.py | 8 ++++---- doc/index.rst | 21 +++++++++++++++++++++ doc/requirements.txt | 12 ++++++------ tests/requirements.txt | 6 +++--- 4 files changed, 34 insertions(+), 13 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index ed916f55b..9d7122fb3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -166,9 +166,9 @@ def _LatestTagName(): "sphinx.ext.autodoc", 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', -# 'sphinx.ext.inheritance_diagram', + 'sphinx.ext.inheritance_diagram', 'sphinx.ext.todo', -# 'sphinx.ext.graphviz', + 'sphinx.ext.graphviz', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', @@ -183,8 +183,8 @@ def _LatestTagName(): # BuildTheDocs extensions 'btd.sphinx.autoprogram', - 'btd.sphinx.graphviz', - 'btd.sphinx.inheritance_diagram', +# 'btd.sphinx.graphviz', +# 'btd.sphinx.inheritance_diagram', # Other extensions # 'DocumentMember', diff --git a/doc/index.rst b/doc/index.rst index 4a62639d4..5fafc09ac 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -98,6 +98,27 @@ Additional Aims News **** +.. only:: html + + Jun. 2021 - Enhancements + ======================== + +.. only:: latex + + .. rubric:: Jun. 2021 - Enhancements + +* Added infrastructure to run example code provided in issues as testcase. +* +* New Single-File GitHub Action workflow (pipeline). +* Added Dependabot configuration file. +* Updated dependencies + + * Sphinx uses now v4.0.2 + * Removed 2 patched Sphinx extensions → now using original extensions. + +* ... + + .. only:: html Nov. 2020 - Test cases diff --git a/doc/requirements.txt b/doc/requirements.txt index f61b8cd1b..9322e563d 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,9 +1,9 @@ -r ../requirements.txt # Enforce latest version on ReadTheDocs -sphinx>=3.3.1 +sphinx>=4.0.2 # Sphinx Themes -sphinx-rtd-theme>=0.5.0 +sphinx-rtd-theme>=0.5.2 # Sphinx Extenstions #sphinxcontrib-actdiag>=0.8.5 @@ -16,9 +16,9 @@ sphinx_autodoc_typehints>=1.11.1 # changelog>=0.3.5 # BuildTheDocs Extensions (mostly patched Sphinx extensions) -btd.sphinx.autoprogram>=0.1.6.post1 -btd.sphinx.graphviz>=2.3.1.post1 -btd.sphinx.inheritance_diagram>=2.3.1.post1 +btd.sphinx.autoprogram>=0.1.7.post1 +#btd.sphinx.graphviz>=2.3.1.post1 +#btd.sphinx.inheritance_diagram>=2.3.1.post1 # Enforce newer version on ReadTheDocs (currently using 2.3.1) -Pygments>=2.7.2 +Pygments>=2.9.0 diff --git a/tests/requirements.txt b/tests/requirements.txt index e42ba7a98..b6817b869 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,8 +1,8 @@ -r ../requirements.txt # Coverage collection -Coverage>=5.3 +Coverage>=5.5 # Test Runner -pytest>=6.2.1 -pytest-cov>=2.10.1 +pytest>=6.2.4 +pytest-cov>=2.12.1 From a180457bc4180fd42774a0d5f91d50152c6ca6b3 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 14 Jun 2021 00:26:13 +0200 Subject: [PATCH 04/11] Fixed ReST syntax errors. --- doc/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index 5fafc09ac..06430e8d2 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -122,7 +122,7 @@ News .. only:: html Nov. 2020 - Test cases - ========================= + ====================== .. only:: latex @@ -150,7 +150,7 @@ News .. only:: html Dec. 2018 - Minor updates - ========================== + ========================= .. only:: latex From 69f20e7db2a118a3566648f50ae05f74765fc1cc Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 18:00:31 +0100 Subject: [PATCH 05/11] Updated dependencies to use pyTooling. Use pyTooling/Actions for CI workflow. --- .github/pull_request_template.md | 8 + .github/workflows/Pipeline.yml | 400 +++++------------- pyVHDLParser/Base.py | 5 +- .../Blocks/Assignment/SignalAssignment.py | 5 +- .../Blocks/Assignment/VariableAssignment.py | 5 +- .../Blocks/Attribute/AttributeDeclaration.py | 5 +- .../Attribute/AttributeSpecification.py | 6 +- pyVHDLParser/Blocks/Comment.py | 5 +- pyVHDLParser/Blocks/Common.py | 5 +- pyVHDLParser/Blocks/ControlStructure/Case.py | 5 +- pyVHDLParser/Blocks/ControlStructure/Exit.py | 5 +- .../Blocks/ControlStructure/ForLoop.py | 5 +- pyVHDLParser/Blocks/ControlStructure/If.py | 5 +- pyVHDLParser/Blocks/ControlStructure/Next.py | 5 +- pyVHDLParser/Blocks/ControlStructure/Null.py | 5 +- .../Blocks/ControlStructure/Return.py | 5 +- .../Blocks/ControlStructure/WhileLoop.py | 5 +- pyVHDLParser/Blocks/Expression.py | 5 +- pyVHDLParser/Blocks/Generate/CaseGenerate.py | 5 +- pyVHDLParser/Blocks/Generate/ForGenerate.py | 5 +- pyVHDLParser/Blocks/Generate/IfGenerate.py | 5 +- pyVHDLParser/Blocks/Generate/__init__.py | 5 +- pyVHDLParser/Blocks/Generic.py | 5 +- pyVHDLParser/Blocks/Generic1.py | 5 +- .../Instantiation/EntityInstantiation.py | 5 +- .../Instantiation/FunctionInstantiation.py | 5 +- .../Instantiation/PackageInstantiation.py | 5 +- .../Instantiation/ProcedureInstantiation.py | 5 +- pyVHDLParser/Blocks/InterfaceObject.py | 5 +- pyVHDLParser/Blocks/List/GenericList.py | 5 +- pyVHDLParser/Blocks/List/GenericMapList.py | 5 +- pyVHDLParser/Blocks/List/ParameterList.py | 5 +- pyVHDLParser/Blocks/List/PortList.py | 5 +- pyVHDLParser/Blocks/List/PortMapList.py | 5 +- pyVHDLParser/Blocks/List/SensitivityList.py | 5 +- pyVHDLParser/Blocks/Object/Constant.py | 5 +- pyVHDLParser/Blocks/Object/File.py | 3 - pyVHDLParser/Blocks/Object/SharedVariable.py | 5 +- pyVHDLParser/Blocks/Object/Signal.py | 5 +- pyVHDLParser/Blocks/Object/Variable.py | 5 +- pyVHDLParser/Blocks/Object/__init__.py | 5 +- pyVHDLParser/Blocks/Reference/Context.py | 5 +- pyVHDLParser/Blocks/Reference/Library.py | 5 +- pyVHDLParser/Blocks/Reference/Use.py | 5 +- pyVHDLParser/Blocks/Reporting/Assert.py | 5 +- pyVHDLParser/Blocks/Reporting/Report.py | 5 +- pyVHDLParser/Blocks/Sequential/Function.py | 5 +- pyVHDLParser/Blocks/Sequential/Package.py | 5 +- pyVHDLParser/Blocks/Sequential/PackageBody.py | 5 +- pyVHDLParser/Blocks/Sequential/Procedure.py | 5 +- pyVHDLParser/Blocks/Sequential/Process.py | 5 +- .../Blocks/Structural/Architecture.py | 5 +- pyVHDLParser/Blocks/Structural/Block.py | 5 +- pyVHDLParser/Blocks/Structural/Component.py | 5 +- .../Blocks/Structural/Configuration.py | 5 +- pyVHDLParser/Blocks/Structural/Entity.py | 5 +- pyVHDLParser/Blocks/Type/SubType.py | 5 +- pyVHDLParser/Blocks/Type/Type.py | 5 +- pyVHDLParser/Blocks/__init__.py | 7 +- pyVHDLParser/CLI/VHDLParser.py | 16 +- pyVHDLParser/Common/Common.py | 5 +- .../DocumentModel/DesignUnit/Architecture.py | 2 - .../DocumentModel/DesignUnit/Context.py | 2 - .../DocumentModel/DesignUnit/Entity.py | 2 - .../DocumentModel/DesignUnit/Package.py | 2 - .../DocumentModel/DesignUnit/PackageBody.py | 2 - .../ObjectDeclaration/__init__.py | 2 +- .../DocumentModel/Sequential/Function.py | 2 +- pyVHDLParser/DocumentModel/__init__.py | 5 +- pyVHDLParser/Graph/CompileOrder.py | 5 +- pyVHDLParser/Graph/Graph.py | 5 +- pyVHDLParser/Groups/Comment.py | 5 +- pyVHDLParser/Groups/Concurrent.py | 5 +- pyVHDLParser/Groups/DesignUnit.py | 5 +- pyVHDLParser/Groups/List.py | 5 +- pyVHDLParser/Groups/Object.py | 5 +- pyVHDLParser/Groups/Reference.py | 5 +- pyVHDLParser/Groups/Sequential/Function.py | 5 +- pyVHDLParser/Groups/Sequential/Procedure.py | 5 +- pyVHDLParser/Groups/Sequential/Process.py | 5 +- pyVHDLParser/Groups/__init__.py | 7 +- pyVHDLParser/NetlistModel/NetlistModel.py | 5 +- pyVHDLParser/SimulationModel/EventSystem.py | 5 +- .../SimulationModel/SimulationModel.py | 5 +- pyVHDLParser/Token/Keywords.py | 5 +- pyVHDLParser/Token/Parser.py | 5 +- pyVHDLParser/Token/__init__.py | 6 +- pyVHDLParser/TypeSystem/Package.py | 5 +- pyVHDLParser/TypeSystem/TypeSystem.py | 2 +- pyVHDLParser/__init__.py | 5 +- requirements.txt | 9 +- 91 files changed, 205 insertions(+), 643 deletions(-) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..7a345ae6c --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,8 @@ +# New Features +* tbd + +# Changes +* tbd + +# Bug Fixes +* tbd diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 77fc6c5ee..1117b14d4 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -1,321 +1,129 @@ -name: Unit Testing, Coverage Collection, Package, Release and Publish +name: Pipeline -on: [ push ] +on: + push: + workflow_dispatch: -jobs: - UnitTesting: - name: Unit Tests - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - python-version: [ 3.8, 3.9 ] - - env: - PYTHON: ${{ matrix.python-version }} - outputs: - python: ${{ env.PYTHON }} - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r tests/requirements.txt - - - name: Run unit tests - run: | - python -m pytest -rA tests/unit - - IssueTesting: - name: Issue Tests - runs-on: ubuntu-latest +defaults: + run: + shell: bash - continue-on-error: true - strategy: - fail-fast: false - matrix: - python-version: [ 3.8, 3.9 ] - - env: - PYTHON: ${{ matrix.python-version }} - outputs: - python: ${{ env.PYTHON }} - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} +jobs: - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r tests/requirements.txt + Params: + uses: pyTooling/Actions/.github/workflows/Parameters.yml@r0 + with: + name: pyVHDLParser + python_version_list: "3.8 3.9 3.10" - - name: Run unit tests - run: | - python -m pytest -rA tests/issue + UnitTesting: + uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@r0 + needs: + - Params + with: + jobs: ${{ needs.Params.outputs.python_jobs }} + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }} Coverage: - name: Collect Coverage Data - runs-on: ubuntu-latest - - env: - PYTHON: 3.9 - outputs: - python: ${{ env.PYTHON }} - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup Python ${{ env.PYTHON }} - uses: actions/setup-python@v2 - with: - python-version: ${{ env.PYTHON }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r tests/requirements.txt - - - name: Collect coverage - continue-on-error: true - run: | - python -m pytest -rA --cov=.. --cov-config=tests/.coveragerc tests/unit - - - name: Convert to cobertura format - run: | - coverage xml - - - name: Publish coverage at CodeCov - continue-on-error: true - uses: codecov/codecov-action@v1 - with: - file: ./coverage.xml - flags: unittests - env_vars: PYTHON - - - name: Publish coverage at Codacy - continue-on-error: true - uses: codacy/codacy-coverage-reporter-action@master - with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: ./coverage.xml - - Release: - name: Release Page on GitHub - runs-on: ubuntu-latest - - if: startsWith(github.ref, 'refs/tags') + uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@r0 + needs: + - Params + with: + python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} + secrets: + codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} + + StaticTypeCheck: + uses: pyTooling/Actions/.github/workflows/StaticTypeCheck.yml@r0 + needs: + - Params + with: + python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} + commands: | + mypy --html-report htmlmypy -p pyVHDLParser + report: 'htmlmypy' + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} + + PublishTestResults: + uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@r0 needs: - UnitTesting - - IssueTesting - - Coverage - - env: - PYTHON: ${{ needs.Coverage.outputs.python }} - outputs: - python: ${{ env.PYTHON }} - tag: ${{ steps.getVariables.outputs.gitTag }} - version: ${{ steps.getVariables.outputs.version }} - datetime: ${{ steps.getVariables.outputs.datetime }} - upload_url: ${{ steps.createReleasePage.outputs.upload_url }} - - steps: - - name: Extract Git tag from GITHUB_REF - id: getVariables - run: | - GIT_TAG=${GITHUB_REF#refs/*/} - RELEASE_VERSION=${GIT_TAG#v} - RELEASE_DATETIME="$(date --utc '+%d.%m.%Y - %H:%M:%S')" - # write to step outputs - echo ::set-output name=gitTag::${GIT_TAG} - echo ::set-output name=version::${RELEASE_VERSION} - echo ::set-output name=datetime::${RELEASE_DATETIME} - - - name: Create Release Page - id: createReleasePage - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.getVariables.outputs.gitTag }} - release_name: ${{ steps.getVariables.outputs.gitTag }} - body: | - **Automated Release created on: ${{ steps.getVariables.outputs.datetime }}** - - # New Features - * tbd - - # Changes - * tbd - - # Bug Fixes - * tbd - draft: false - prerelease: false Package: - name: Package in Wheel Format - runs-on: ubuntu-latest - - if: startsWith(github.ref, 'refs/tags') + uses: pyTooling/Actions/.github/workflows/Package.yml@r0 needs: + - Params - Coverage + with: + python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }} - env: - PYTHON: ${{ needs.Coverage.outputs.python }} - ARTIFACT: pyVHDLParser-wheel - outputs: - python: ${{ env.PYTHON }} - artifact: ${{ env.ARTIFACT }} - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup Python ${{ env.PYTHON }} - uses: actions/setup-python@v2 - with: - python-version: ${{ env.PYTHON }} - - - name: Install dependencies for packaging and release - run: | - python -m pip install --upgrade pip - pip install wheel - - - name: Build Python package (source distribution) - run: | - python setup.py sdist - - - name: Build Python package (binary distribution - wheel) - run: | - python setup.py bdist_wheel - - - name: Upload 'pyVHDLParser' artifact - uses: actions/upload-artifact@v2 - with: - name: ${{ env.ARTIFACT }} - path: dist/ - if-no-files-found: error - retention-days: 1 - - PublishOnPyPI: - name: Publish to PyPI - runs-on: ubuntu-latest - + Release: + uses: pyTooling/Actions/.github/workflows/Release.yml@r0 if: startsWith(github.ref, 'refs/tags') needs: + - UnitTesting + - Coverage + - StaticTypeCheck - Package - env: - PYTHON: ${{ needs.Package.outputs.python }} - ARTIFACT: ${{ needs.Package.outputs.artifact }} - outputs: - python: ${{ env.PYTHON }} - artifact: ${{ env.ARTIFACT }} - - steps: - - name: Download artifacts '${{ env.ARTIFACT }}' from 'Package' job - uses: actions/download-artifact@v2 - with: - name: ${{ env.ARTIFACT }} - path: dist/ - - - name: Setup Python ${{ env.PYTHON }} - uses: actions/setup-python@v2 - with: - python-version: ${{ env.PYTHON }} - - - name: Install dependencies for packaging and release - run: | - python -m pip install --upgrade pip - pip install wheel twine - - - name: Release Python package to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - twine upload dist/* - - PublishOnGitHub: - name: Publish to GitHub - runs-on: ubuntu-latest - + PublishOnPyPI: + uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@r0 if: startsWith(github.ref, 'refs/tags') needs: - - Package + - Params - Release + - Package + with: + python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} + requirements: -r dist/requirements.txt + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }} + secrets: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + +# VerifyDocs: +# uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@r0 +# needs: +# - Params +# with: +# python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} + + BuildTheDocs: + uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0 + needs: + - Params +# - VerifyDocs + with: + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }} - env: - PYTHON: ${{ needs.Package.outputs.python }} - ARTIFACT: ${{ needs.Package.outputs.artifact }} - outputs: - python: ${{ env.PYTHON }} - artifact: ${{ env.ARTIFACT }} - - steps: - - name: Download artifacts from 'Package' job - uses: actions/download-artifact@v2 - with: - name: ${{ env.ARTIFACT }} - path: dist/ - - - name: Upload wheel as Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.Release.outputs.upload_url }} - asset_path: dist/pyVHDLParser-${{ needs.Release.outputs.version }}-py3-none-any.whl - asset_name: pyVHDLParser-${{ needs.Release.outputs.version }}-py3-none-any.whl - asset_content_type: application/x-wheel+zip + PublishToGitHubPages: + uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@r0 + needs: + - Params + - BuildTheDocs + - Coverage + - StaticTypeCheck + with: + doc: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }} + coverage: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} + typing: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} ArtifactCleanUp: - name: Artifact Cleanup - runs-on: ubuntu-latest - + uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@r0 needs: - - Package - - PublishOnPyPI - - PublishOnGitHub - - env: - ARTIFACT: ${{ needs.Package.outputs.artifact }} - - steps: - - name: Delete all Artifacts - uses: geekyeggo/delete-artifact@v1 - with: - name: | - ${{ env.ARTIFACT }} - -# TriggerNext: -# name: Trigger next Workflows -# needs: [ UnitTesting, Coverage ] -# runs-on: ubuntu-latest -# env: -# PYTHON: 3.9 -# steps: -# - name: Trigger Release Workflow -# if: startsWith(github.ref, 'refs/tags') -# uses: peter-evans/repository-dispatch@v1 -# with: -# token: ${{ secrets.TRIGGER_TOKEN_2 }} -## repository: vhdl/pyVHDLModel -# event-type: doRelease -# client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "PYTHON": "${{ env.PYTHON }}"}' + - Params + - UnitTesting + - Coverage + - StaticTypeCheck + - BuildTheDocs + - PublishToGitHubPages + with: + package: ${{ fromJson(needs.Params.outputs.params).artifacts.package }} + remaining: | + ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-3.8 + ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-3.9 + ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-3.10 + ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} + ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} + ${{ fromJson(needs.Params.outputs.params).artifacts.doc }} diff --git a/pyVHDLParser/Base.py b/pyVHDLParser/Base.py index ba639dee5..f22f3da0c 100644 --- a/pyVHDLParser/Base.py +++ b/pyVHDLParser/Base.py @@ -25,10 +25,7 @@ # limitations under the License. # ============================================================================== # -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/Blocks/Assignment/SignalAssignment.py b/pyVHDLParser/Blocks/Assignment/SignalAssignment.py index 59aacc5a7..6190f4361 100644 --- a/pyVHDLParser/Blocks/Assignment/SignalAssignment.py +++ b/pyVHDLParser/Blocks/Assignment/SignalAssignment.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class SignalAssignmentBlock(Block): diff --git a/pyVHDLParser/Blocks/Assignment/VariableAssignment.py b/pyVHDLParser/Blocks/Assignment/VariableAssignment.py index 59aacc5a7..6190f4361 100644 --- a/pyVHDLParser/Blocks/Assignment/VariableAssignment.py +++ b/pyVHDLParser/Blocks/Assignment/VariableAssignment.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class SignalAssignmentBlock(Block): diff --git a/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py b/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py index 4eeb79c20..9432442c5 100644 --- a/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py +++ b/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class AttributeDeclarationBlock(Block): diff --git a/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py b/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py index 3df3bafe5..2288ab125 100644 --- a/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py +++ b/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken @@ -34,10 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - - @export class AttributeSpecificationBlock(Block): diff --git a/pyVHDLParser/Blocks/Comment.py b/pyVHDLParser/Blocks/Comment.py index 1907eea88..0dd62efef 100644 --- a/pyVHDLParser/Blocks/Comment.py +++ b/pyVHDLParser/Blocks/Comment.py @@ -26,16 +26,13 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, IndentationToken from pyVHDLParser.Token.Keywords import SingleLineCommentKeyword, MultiLineCommentStartKeyword, MultiLineCommentEndKeyword from pyVHDLParser.Blocks import CommentBlock, ParserState from pyVHDLParser.Blocks.Common import IndentationBlock -__all__ = [] -__api__ = __all__ - @export class SingleLineCommentBlock(CommentBlock): diff --git a/pyVHDLParser/Blocks/Common.py b/pyVHDLParser/Blocks/Common.py index f597c72a1..a9aeddfb1 100644 --- a/pyVHDLParser/Blocks/Common.py +++ b/pyVHDLParser/Blocks/Common.py @@ -26,14 +26,11 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, IndentationToken from pyVHDLParser.Blocks import ParserState, SkipableBlock -__all__ = [] -__api__ = __all__ - @export class WhitespaceBlock(SkipableBlock): diff --git a/pyVHDLParser/Blocks/ControlStructure/Case.py b/pyVHDLParser/Blocks/ControlStructure/Case.py index b510a56c0..12369f686 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Case.py +++ b/pyVHDLParser/Blocks/ControlStructure/Case.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, CaseKeyword, WhenKeyword, IsKeyword, EndKeyword, MapAssociationKeyword @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByCharORClosingRoundBracket, ExpressionBlockEndedByKeywordORClosingRoundBracket -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/ControlStructure/Exit.py b/pyVHDLParser/Blocks/ControlStructure/Exit.py index 5911bdaa2..22c4196fe 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Exit.py +++ b/pyVHDLParser/Blocks/ControlStructure/Exit.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import WordToken, ExtendedIdentifier, CharacterToken @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import EndOfStatementBlock from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndOfStatementBlock): diff --git a/pyVHDLParser/Blocks/ControlStructure/ForLoop.py b/pyVHDLParser/Blocks/ControlStructure/ForLoop.py index d193c85f4..1d5f4ac5a 100644 --- a/pyVHDLParser/Blocks/ControlStructure/ForLoop.py +++ b/pyVHDLParser/Blocks/ControlStructure/ForLoop.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier, CharacterToken, SpaceToken from pyVHDLParser.Token.Keywords import InKeyword, ForKeyword, LoopKeyword, BoundaryToken, IdentifierToken, WordToken @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByKeywordORClosingRoundBracket, ExpressionBlockEndedByKeywordOrToOrDownto -__all__ = [] -__api__ = __all__ - @export class IteratorBlock(Block): diff --git a/pyVHDLParser/Blocks/ControlStructure/If.py b/pyVHDLParser/Blocks/ControlStructure/If.py index 6dab614ad..e0c8e1192 100644 --- a/pyVHDLParser/Blocks/ControlStructure/If.py +++ b/pyVHDLParser/Blocks/ControlStructure/If.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IfKeyword, ThenKeyword, ElsIfKeyword, ElseKeyword @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByKeywordORClosingRoundBracket -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/ControlStructure/Next.py b/pyVHDLParser/Blocks/ControlStructure/Next.py index 40c3ba018..749834741 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Next.py +++ b/pyVHDLParser/Blocks/ControlStructure/Next.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import WordToken, ExtendedIdentifier, CharacterToken @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import EndOfStatementBlock from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndOfStatementBlock): diff --git a/pyVHDLParser/Blocks/ControlStructure/Null.py b/pyVHDLParser/Blocks/ControlStructure/Null.py index 17c0e55ab..00b103b69 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Null.py +++ b/pyVHDLParser/Blocks/ControlStructure/Null.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import CharacterToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Generic1 import EndOfStatementBlock -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndOfStatementBlock): diff --git a/pyVHDLParser/Blocks/ControlStructure/Return.py b/pyVHDLParser/Blocks/ControlStructure/Return.py index 933d0174f..f0916b34b 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Return.py +++ b/pyVHDLParser/Blocks/ControlStructure/Return.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CommentToken, CharacterToken, SpaceToken, LinebreakToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import BoundaryToken, EndToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndOfStatementBlock): diff --git a/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py b/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py index e6a7cc256..1f61e67e1 100644 --- a/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py +++ b/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, LoopKeyword @@ -38,9 +38,6 @@ from pyVHDLParser.Blocks.Generic import EndBlock as EndBlockBase from pyVHDLParser.Blocks.List import GenericList, PortList -__all__ = [] -__api__ = __all__ - @export class ConditionBlock(Block): diff --git a/pyVHDLParser/Blocks/Expression.py b/pyVHDLParser/Blocks/Expression.py index 40ac44f82..b8471fae5 100644 --- a/pyVHDLParser/Blocks/Expression.py +++ b/pyVHDLParser/Blocks/Expression.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import FusedCharacterToken, CharacterToken, WordToken, LiteralToken, SpaceToken, LinebreakToken from pyVHDLParser.Token import CommentToken, Token, MultiLineCommentToken, IndentationToken, SingleLineCommentToken @@ -40,9 +40,6 @@ from pyVHDLParser.Blocks import Block, ParserState, BlockParserException, CommentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class ExpressionBlock(Block): diff --git a/pyVHDLParser/Blocks/Generate/CaseGenerate.py b/pyVHDLParser/Blocks/Generate/CaseGenerate.py index 9b95c9372..9d796aa77 100644 --- a/pyVHDLParser/Blocks/Generate/CaseGenerate.py +++ b/pyVHDLParser/Blocks/Generate/CaseGenerate.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, BeginKeyword from pyVHDLParser.Token.Keywords import IsKeyword, EndKeyword, GenericKeyword, PortKeyword @@ -37,9 +37,6 @@ from pyVHDLParser.Blocks.Generate import EndGenerateBlock as EndGenerateBlockBase from pyVHDLParser.Blocks.List import GenericList, PortList -__all__ = [] -__api__ = __all__ - @export class CaseBlock(Block): diff --git a/pyVHDLParser/Blocks/Generate/ForGenerate.py b/pyVHDLParser/Blocks/Generate/ForGenerate.py index 00d9f71ad..b2049cba0 100644 --- a/pyVHDLParser/Blocks/Generate/ForGenerate.py +++ b/pyVHDLParser/Blocks/Generate/ForGenerate.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, BeginKeyword, ProcessKeyword, AssertKeyword @@ -39,9 +39,6 @@ from pyVHDLParser.Blocks.Reporting.Assert import AssertBlock from pyVHDLParser.Blocks.Sequential import Process -__all__ = [] -__api__ = __all__ - @export class RangeBlock(Block): diff --git a/pyVHDLParser/Blocks/Generate/IfGenerate.py b/pyVHDLParser/Blocks/Generate/IfGenerate.py index a3f1dbfca..9f28acb24 100644 --- a/pyVHDLParser/Blocks/Generate/IfGenerate.py +++ b/pyVHDLParser/Blocks/Generate/IfGenerate.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken @@ -40,9 +40,6 @@ from pyVHDLParser.Blocks.Reporting.Assert import AssertBlock from pyVHDLParser.Blocks.Sequential import Process -__all__ = [] -__api__ = __all__ - @export class IfConditionBlock(Block): diff --git a/pyVHDLParser/Blocks/Generate/__init__.py b/pyVHDLParser/Blocks/Generate/__init__.py index 9c8e89b37..70be4212a 100644 --- a/pyVHDLParser/Blocks/Generate/__init__.py +++ b/pyVHDLParser/Blocks/Generate/__init__.py @@ -26,14 +26,11 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import GenerateKeyword from pyVHDLParser.Blocks.Generic import EndBlock -__all__ = [] -__api__ = __all__ - @export class EndGenerateBlock(EndBlock): diff --git a/pyVHDLParser/Blocks/Generic.py b/pyVHDLParser/Blocks/Generic.py index 406ded655..fb14084dd 100644 --- a/pyVHDLParser/Blocks/Generic.py +++ b/pyVHDLParser/Blocks/Generic.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, IndentationToken from pyVHDLParser.Token.Keywords import AssertKeyword, EndKeyword, ProcessKeyword, ReportKeyword, IfKeyword, ForKeyword, ReturnKeyword, NextKeyword, NullKeyword @@ -37,9 +37,6 @@ from pyVHDLParser.Blocks.Object.Variable import VariableDeclarationBlock from pyVHDLParser.Blocks.Generic1 import EndBlock, BeginBlock -__all__ = [] -__api__ = __all__ - @export class DeclarativeRegion(metaclass=MetaBlock): diff --git a/pyVHDLParser/Blocks/Generic1.py b/pyVHDLParser/Blocks/Generic1.py index 326d161a0..17477b2ab 100644 --- a/pyVHDLParser/Blocks/Generic1.py +++ b/pyVHDLParser/Blocks/Generic1.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, LinebreakToken, CommentToken, WordToken, MultiLineCommentToken, IndentationToken from pyVHDLParser.Token import SingleLineCommentToken, ExtendedIdentifier @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks import FinalBlock, ParserState, CommentBlock, BlockParserException, Block from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class EndBlock(FinalBlock): diff --git a/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py b/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py index d308a75ea..ccc98f433 100644 --- a/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class EntityInstantiationBlock(Block): diff --git a/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py b/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py index 9d72e2f28..6c420dd4d 100644 --- a/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class EntityInstantiationBlock(Block): diff --git a/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py b/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py index 9d72e2f28..6c420dd4d 100644 --- a/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class EntityInstantiationBlock(Block): diff --git a/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py b/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py index 9d72e2f28..6c420dd4d 100644 --- a/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class EntityInstantiationBlock(Block): diff --git a/pyVHDLParser/Blocks/InterfaceObject.py b/pyVHDLParser/Blocks/InterfaceObject.py index 72e212846..209274814 100644 --- a/pyVHDLParser/Blocks/InterfaceObject.py +++ b/pyVHDLParser/Blocks/InterfaceObject.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, WordToken, ExtendedIdentifier, MultiLineCommentToken from pyVHDLParser.Token import IndentationToken, SingleLineCommentToken, CharacterToken, FusedCharacterToken @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByCharORClosingRoundBracket -__all__ = [] -__api__ = __all__ - @export class InterfaceObjectBlock(Block): diff --git a/pyVHDLParser/Blocks/List/GenericList.py b/pyVHDLParser/Blocks/List/GenericList.py index 9992f9c3a..00d99073a 100644 --- a/pyVHDLParser/Blocks/List/GenericList.py +++ b/pyVHDLParser/Blocks/List/GenericList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, ConstantKeyword, TypeKeyword, DelimiterToken @@ -38,9 +38,6 @@ from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByCharORClosingRoundBracket from pyVHDLParser.Blocks.InterfaceObject import InterfaceConstantBlock, InterfaceTypeBlock -__all__ = [] -__api__ = __all__ - @export class CloseBlock(CloseBlockBase): diff --git a/pyVHDLParser/Blocks/List/GenericMapList.py b/pyVHDLParser/Blocks/List/GenericMapList.py index 9b86208c2..7ce6834ed 100644 --- a/pyVHDLParser/Blocks/List/GenericMapList.py +++ b/pyVHDLParser/Blocks/List/GenericMapList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken, OpeningRoundBracketToken, ClosingRoundBracketToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class OpenBlock(Block): diff --git a/pyVHDLParser/Blocks/List/ParameterList.py b/pyVHDLParser/Blocks/List/ParameterList.py index cb68be025..7c43fbdf0 100644 --- a/pyVHDLParser/Blocks/List/ParameterList.py +++ b/pyVHDLParser/Blocks/List/ParameterList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, DelimiterToken, ClosingRoundBracketToken, IdentifierToken @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic1 import CloseBlock as CloseBlockBase from pyVHDLParser.Blocks.InterfaceObject import InterfaceSignalBlock, InterfaceConstantBlock, InterfaceVariableBlock -__all__ = [] -__api__ = __all__ - @export class OpenBlock(Block): diff --git a/pyVHDLParser/Blocks/List/PortList.py b/pyVHDLParser/Blocks/List/PortList.py index e8de0693d..a42064f7f 100644 --- a/pyVHDLParser/Blocks/List/PortList.py +++ b/pyVHDLParser/Blocks/List/PortList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, SignalKeyword, DelimiterToken @@ -37,9 +37,6 @@ from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedByCharORClosingRoundBracket from pyVHDLParser.Blocks.InterfaceObject import InterfaceSignalBlock -__all__ = [] -__api__ = __all__ - @export class CloseBlock(CloseBlockBase): diff --git a/pyVHDLParser/Blocks/List/PortMapList.py b/pyVHDLParser/Blocks/List/PortMapList.py index 35bb291f2..38300e9ee 100644 --- a/pyVHDLParser/Blocks/List/PortMapList.py +++ b/pyVHDLParser/Blocks/List/PortMapList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken, OpeningRoundBracketToken, ClosingRoundBracketToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class OpenBlock(Block): diff --git a/pyVHDLParser/Blocks/List/SensitivityList.py b/pyVHDLParser/Blocks/List/SensitivityList.py index 48a2bf48b..84533cdaa 100644 --- a/pyVHDLParser/Blocks/List/SensitivityList.py +++ b/pyVHDLParser/Blocks/List/SensitivityList.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, ExtendedIdentifier from pyVHDLParser.Token import CommentToken, MultiLineCommentToken, SingleLineCommentToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks import BlockParserException, Block, CommentBlock, ParserState, SkipableBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class OpenBlock(Block): diff --git a/pyVHDLParser/Blocks/Object/Constant.py b/pyVHDLParser/Blocks/Object/Constant.py index 3a0e80932..9937bf4dd 100644 --- a/pyVHDLParser/Blocks/Object/Constant.py +++ b/pyVHDLParser/Blocks/Object/Constant.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon from pyVHDLParser.Blocks.Object import ObjectDeclarationEndMarkerBlock, ObjectDeclarationBlock -__all__ = [] -__api__ = __all__ - @export class ConstantDeclarationEndMarkerBlock(ObjectDeclarationEndMarkerBlock): diff --git a/pyVHDLParser/Blocks/Object/File.py b/pyVHDLParser/Blocks/Object/File.py index d3164e2dc..667357620 100644 --- a/pyVHDLParser/Blocks/Object/File.py +++ b/pyVHDLParser/Blocks/Object/File.py @@ -26,6 +26,3 @@ # ============================================================================== # # load dependencies - -__all__ = [] -__api__ = __all__ diff --git a/pyVHDLParser/Blocks/Object/SharedVariable.py b/pyVHDLParser/Blocks/Object/SharedVariable.py index 9a57edd20..bda7dd423 100644 --- a/pyVHDLParser/Blocks/Object/SharedVariable.py +++ b/pyVHDLParser/Blocks/Object/SharedVariable.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import ParserState, CommentBlock, BlockParserException from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Object import ObjectDeclarationEndMarkerBlock, ObjectDeclarationBlock @@ -34,9 +34,6 @@ from pyVHDLParser.Token import ExtendedIdentifier, MultiLineCommentToken, CharacterToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken -__all__ = [] -__api__ = __all__ - @export class SharedVariableDeclarationEndMarkerBlock(ObjectDeclarationEndMarkerBlock): diff --git a/pyVHDLParser/Blocks/Object/Signal.py b/pyVHDLParser/Blocks/Object/Signal.py index b77b5d454..cf010fd78 100644 --- a/pyVHDLParser/Blocks/Object/Signal.py +++ b/pyVHDLParser/Blocks/Object/Signal.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon from pyVHDLParser.Blocks.Object import ObjectDeclarationEndMarkerBlock, ObjectDeclarationBlock -__all__ = [] -__api__ = __all__ - @export class SignalDeclarationEndMarkerBlock(ObjectDeclarationEndMarkerBlock): diff --git a/pyVHDLParser/Blocks/Object/Variable.py b/pyVHDLParser/Blocks/Object/Variable.py index 36cd9c424..ef39b249f 100644 --- a/pyVHDLParser/Blocks/Object/Variable.py +++ b/pyVHDLParser/Blocks/Object/Variable.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Expression import ExpressionBlockEndedBySemicolon from pyVHDLParser.Blocks.Object import ObjectDeclarationEndMarkerBlock, ObjectDeclarationBlock -__all__ = [] -__api__ = __all__ - @export class VariableDeclarationEndMarkerBlock(ObjectDeclarationEndMarkerBlock): diff --git a/pyVHDLParser/Blocks/Object/__init__.py b/pyVHDLParser/Blocks/Object/__init__.py index 128889402..cf35b8173 100644 --- a/pyVHDLParser/Blocks/Object/__init__.py +++ b/pyVHDLParser/Blocks/Object/__init__.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import WordToken, ExtendedIdentifier, LinebreakToken, MultiLineCommentToken from pyVHDLParser.Token import CommentToken, SpaceToken, CharacterToken, FusedCharacterToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Generic1 import EndOfStatementBlock -__all__ = [] -__api__ = __all__ - @export class ObjectDeclarationBlock(Block): diff --git a/pyVHDLParser/Blocks/Reference/Context.py b/pyVHDLParser/Blocks/Reference/Context.py index f39d22c52..863cec463 100644 --- a/pyVHDLParser/Blocks/Reference/Context.py +++ b/pyVHDLParser/Blocks/Reference/Context.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CommentToken, SpaceToken, LinebreakToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, IsKeyword, UseKeyword, EndKeyword, ContextKeyword, LibraryKeyword @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock from pyVHDLParser.Blocks.Generic import EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class NameBlock(Block): diff --git a/pyVHDLParser/Blocks/Reference/Library.py b/pyVHDLParser/Blocks/Reference/Library.py index cbd266e9a..a1203d9cf 100644 --- a/pyVHDLParser/Blocks/Reference/Library.py +++ b/pyVHDLParser/Blocks/Reference/Library.py @@ -26,16 +26,13 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken from pyVHDLParser.Blocks import BlockParserException, Block, CommentBlock, ParserState, FinalBlock, SkipableBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class StartBlock(Block): diff --git a/pyVHDLParser/Blocks/Reference/Use.py b/pyVHDLParser/Blocks/Reference/Use.py index cc89da34a..fb4b299f3 100644 --- a/pyVHDLParser/Blocks/Reference/Use.py +++ b/pyVHDLParser/Blocks/Reference/Use.py @@ -26,16 +26,13 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, DelimiterToken, EndToken, AllKeyword from pyVHDLParser.Blocks import BlockParserException, Block, CommentBlock, ParserState, FinalBlock, SkipableBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class StartBlock(Block): diff --git a/pyVHDLParser/Blocks/Reporting/Assert.py b/pyVHDLParser/Blocks/Reporting/Assert.py index c5313bc9a..f5926def8 100644 --- a/pyVHDLParser/Blocks/Reporting/Assert.py +++ b/pyVHDLParser/Blocks/Reporting/Assert.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, WordToken, IndentationToken, CharacterToken from pyVHDLParser.Token import CommentToken, SingleLineCommentToken, MultiLineCommentToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks import Block, CommentBlock, ParserState, BlockParserException from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class AssertBlock(Block): diff --git a/pyVHDLParser/Blocks/Reporting/Report.py b/pyVHDLParser/Blocks/Reporting/Report.py index 85ce185d6..ea5186ef9 100644 --- a/pyVHDLParser/Blocks/Reporting/Report.py +++ b/pyVHDLParser/Blocks/Reporting/Report.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, WordToken, IndentationToken, CharacterToken from pyVHDLParser.Token import CommentToken, SingleLineCommentToken, MultiLineCommentToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks import Block, CommentBlock, ParserState, BlockParserException from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock -__all__ = [] -__api__ = __all__ - @export class ReportBlock(Block): diff --git a/pyVHDLParser/Blocks/Sequential/Function.py b/pyVHDLParser/Blocks/Sequential/Function.py index cda90ea21..e35976988 100644 --- a/pyVHDLParser/Blocks/Sequential/Function.py +++ b/pyVHDLParser/Blocks/Sequential/Function.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, CharacterToken, IndentationToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, PureKeyword, ImpureKeyword @@ -38,9 +38,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.List import GenericList, ParameterList -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Sequential/Package.py b/pyVHDLParser/Blocks/Sequential/Package.py index 52645ee6b..0fc5de32c 100644 --- a/pyVHDLParser/Blocks/Sequential/Package.py +++ b/pyVHDLParser/Blocks/Sequential/Package.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import PackageKeyword, IsKeyword, EndKeyword, GenericKeyword, BodyKeyword, UseKeyword, VariableKeyword, SignalKeyword @@ -39,9 +39,6 @@ from pyVHDLParser.Blocks.Sequential import PackageBody from pyVHDLParser.Blocks.List import GenericList -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Sequential/PackageBody.py b/pyVHDLParser/Blocks/Sequential/PackageBody.py index 430be4609..834a5016c 100644 --- a/pyVHDLParser/Blocks/Sequential/PackageBody.py +++ b/pyVHDLParser/Blocks/Sequential/PackageBody.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken from pyVHDLParser.Token.Keywords import PackageKeyword, IsKeyword, EndKeyword, BodyKeyword, FunctionKeyword, SignalKeyword @@ -37,9 +37,6 @@ from pyVHDLParser.Blocks.Generic import SequentialDeclarativeRegion from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Sequential/Procedure.py b/pyVHDLParser/Blocks/Sequential/Procedure.py index c5a92f47f..a5041dc1c 100644 --- a/pyVHDLParser/Blocks/Sequential/Procedure.py +++ b/pyVHDLParser/Blocks/Sequential/Procedure.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, CharacterToken, IndentationToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, GenericKeyword, ParameterKeyword, ProcedureKeyword, EndKeyword, ImpureKeyword, PureKeyword @@ -38,9 +38,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.List import GenericList, ParameterList -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Sequential/Process.py b/pyVHDLParser/Blocks/Sequential/Process.py index d613edad8..1594e9061 100644 --- a/pyVHDLParser/Blocks/Sequential/Process.py +++ b/pyVHDLParser/Blocks/Sequential/Process.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, LinebreakToken, CommentToken, IndentationToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IsKeyword, UseKeyword, ConstantKeyword, ImpureKeyword, PureKeyword @@ -38,9 +38,6 @@ from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase from pyVHDLParser.Blocks.List import SensitivityList -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Structural/Architecture.py b/pyVHDLParser/Blocks/Structural/Architecture.py index 4d664fbe4..65590ae28 100644 --- a/pyVHDLParser/Blocks/Structural/Architecture.py +++ b/pyVHDLParser/Blocks/Structural/Architecture.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ArchitectureKeyword, IsKeyword, OfKeyword, BoundaryToken, IdentifierToken @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Generic import ConcurrentBeginBlock, ConcurrentDeclarativeRegion from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Structural/Block.py b/pyVHDLParser/Blocks/Structural/Block.py index 79984959e..01bfef4ae 100644 --- a/pyVHDLParser/Blocks/Structural/Block.py +++ b/pyVHDLParser/Blocks/Structural/Block.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken @@ -40,9 +40,6 @@ from pyVHDLParser.Blocks.Reporting import Assert from pyVHDLParser.Blocks.Sequential import Process -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Structural/Component.py b/pyVHDLParser/Blocks/Structural/Component.py index cd0cdbd25..5dd2a3e5d 100644 --- a/pyVHDLParser/Blocks/Structural/Component.py +++ b/pyVHDLParser/Blocks/Structural/Component.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ComponentKeyword, IsKeyword, EndKeyword, GenericKeyword, PortKeyword, UseKeyword, BeginKeyword @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock from pyVHDLParser.Blocks.Generic import EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class NameBlock(Block): diff --git a/pyVHDLParser/Blocks/Structural/Configuration.py b/pyVHDLParser/Blocks/Structural/Configuration.py index d16923659..5f3f3f1fd 100644 --- a/pyVHDLParser/Blocks/Structural/Configuration.py +++ b/pyVHDLParser/Blocks/Structural/Configuration.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ConfigurationKeyword, IsKeyword, EndKeyword, GenericKeyword, PortKeyword, UseKeyword, BeginKeyword @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock, WhitespaceBlock from pyVHDLParser.Blocks.Generic import ConcurrentBeginBlock, EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class NameBlock(Block): diff --git a/pyVHDLParser/Blocks/Structural/Entity.py b/pyVHDLParser/Blocks/Structural/Entity.py index 424a58336..198dbe054 100644 --- a/pyVHDLParser/Blocks/Structural/Entity.py +++ b/pyVHDLParser/Blocks/Structural/Entity.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import EntityKeyword, IsKeyword, GenericKeyword, PortKeyword @@ -36,9 +36,6 @@ from pyVHDLParser.Blocks.Generic import ConcurrentBeginBlock, ConcurrentDeclarativeRegion from pyVHDLParser.Blocks.Generic1 import EndBlock as EndBlockBase -__all__ = [] -__api__ = __all__ - @export class EndBlock(EndBlockBase): diff --git a/pyVHDLParser/Blocks/Type/SubType.py b/pyVHDLParser/Blocks/Type/SubType.py index 45be2b739..eee77bef1 100644 --- a/pyVHDLParser/Blocks/Type/SubType.py +++ b/pyVHDLParser/Blocks/Type/SubType.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class SubTypeBlock(Block): diff --git a/pyVHDLParser/Blocks/Type/Type.py b/pyVHDLParser/Blocks/Type/Type.py index da8c5d02f..e463504cc 100644 --- a/pyVHDLParser/Blocks/Type/Type.py +++ b/pyVHDLParser/Blocks/Type/Type.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken @@ -34,9 +34,6 @@ from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Comment import SingleLineCommentBlock, MultiLineCommentBlock -__all__ = [] -__api__ = __all__ - @export class TypeBlock(Block): diff --git a/pyVHDLParser/Blocks/__init__.py b/pyVHDLParser/Blocks/__init__.py index 9be6c020d..71a88c02d 100644 --- a/pyVHDLParser/Blocks/__init__.py +++ b/pyVHDLParser/Blocks/__init__.py @@ -28,8 +28,8 @@ from types import FunctionType from typing import List, Callable, Iterator, Generator -from pydecor.decorators import export -from pyTerminalUI import LineTerminal +from pyTooling.Decorators import export +from pyTooling.TerminalUI import LineTerminal from pyVHDLParser import StartOfDocument, EndOfDocument, StartOfSnippet, EndOfSnippet from pyVHDLParser.Base import ParserException @@ -37,9 +37,6 @@ from pyVHDLParser.Token import WordToken, EndOfDocumentToken, StartOfDocumentToken from pyVHDLParser.Token.Keywords import LibraryKeyword, UseKeyword, ContextKeyword, EntityKeyword, ArchitectureKeyword, PackageKeyword -__all__ = [] -__api__ = __all__ - @export class BlockParserException(ParserException): diff --git a/pyVHDLParser/CLI/VHDLParser.py b/pyVHDLParser/CLI/VHDLParser.py index 220b9b623..1e5fb7601 100644 --- a/pyVHDLParser/CLI/VHDLParser.py +++ b/pyVHDLParser/CLI/VHDLParser.py @@ -24,10 +24,11 @@ from platform import system as platform_system from textwrap import dedent, wrap -from pyExceptions import ExceptionBase +from pyTooling.Exceptions import ExceptionBase +from pyTooling.Decorators import export +from pyTooling.MetaClasses import Singleton +from pyTooling.TerminalUI import LineTerminal, Severity from pyAttributes.ArgParseAttributes import ArgParseMixin, DefaultAttribute, CommandAttribute, ArgumentAttribute, CommonSwitchArgumentAttribute -from pyMetaClasses import Singleton -from pyTerminalUI import LineTerminal, Severity from pyVHDLParser.Blocks import MetaBlock @@ -41,17 +42,13 @@ __copyright__ = "Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany\n" + \ "Copyright 2016-2017 Patrick Lehmann - Dresden, Germany" __maintainer__ = "Patrick Lehmann" -__email__ = "Patrick.Lehmann@plc2.de" +__email__ = "Paebbels@gmail.com" __version__ = "0.6.0" __status__ = "Alpha" __license__ = "Apache License 2.0" -__api__ = [ - 'printImportError', - 'Application' -] -__all__ = __api__ +@export def printImportError(ex): platform = platform_system() print("IMPORT ERROR: One or more Python packages are not available in your environment.") @@ -63,6 +60,7 @@ def printImportError(ex): exit(1) +@export class Application(LineTerminal, ArgParseMixin, TokenStreamHandlers, BlockStreamHandlers, GroupStreamHandlers, CodeDOMHandlers): HeadLine = "pyVHDLParser - Test Application" diff --git a/pyVHDLParser/Common/Common.py b/pyVHDLParser/Common/Common.py index 3fda7bd92..4f0c70e2e 100644 --- a/pyVHDLParser/Common/Common.py +++ b/pyVHDLParser/Common/Common.py @@ -28,10 +28,7 @@ # load dependencies from enum import Enum -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py index 1828d3ac8..77110c077 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py @@ -38,8 +38,6 @@ from pyVHDLParser.Groups import ParserState from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Context.py b/pyVHDLParser/DocumentModel/DesignUnit/Context.py index 4148c08f3..8cd6f23d4 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Context.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Context.py @@ -36,8 +36,6 @@ from pyVHDLParser.Groups import ParserState from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py index 3cbda551b..6a9d28d2c 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py @@ -41,8 +41,6 @@ from pyVHDLParser.Groups.List import GenericListGroup, PortListGroup from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Package.py b/pyVHDLParser/DocumentModel/DesignUnit/Package.py index e8bac897c..859be0483 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Package.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Package.py @@ -41,8 +41,6 @@ from pyVHDLParser.Groups.List import GenericListGroup from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py index 68eedc9c2..e558d4293 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py @@ -40,8 +40,6 @@ from pyVHDLParser.Groups import ParserState from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ DEBUG = True diff --git a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py index f890b6285..1bdd101da 100644 --- a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py +++ b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pyTerminalUI import LineTerminal +from pyTooling.TerminalUI import LineTerminal from pyVHDLModel.VHDLModel import Constant as ConstantBase diff --git a/pyVHDLParser/DocumentModel/Sequential/Function.py b/pyVHDLParser/DocumentModel/Sequential/Function.py index 350885c09..49f11ac46 100644 --- a/pyVHDLParser/DocumentModel/Sequential/Function.py +++ b/pyVHDLParser/DocumentModel/Sequential/Function.py @@ -28,7 +28,7 @@ # load dependencies from typing import List -from pyTerminalUI import LineTerminal +from pyTooling.TerminalUI import LineTerminal from pyVHDLModel.VHDLModel import Function as FunctionModel from pyVHDLParser.Token.Keywords import IdentifierToken diff --git a/pyVHDLParser/DocumentModel/__init__.py b/pyVHDLParser/DocumentModel/__init__.py index fa2d6d39e..ac678b46c 100644 --- a/pyVHDLParser/DocumentModel/__init__.py +++ b/pyVHDLParser/DocumentModel/__init__.py @@ -28,7 +28,7 @@ from pathlib import Path from typing import List, Union -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLModel.VHDLModel import Document as DocumentModel from pyVHDLParser.Base import ParserException @@ -40,9 +40,6 @@ from pyVHDLParser.Groups.Reference import LibraryGroup, UseGroup from pyVHDLParser.DocumentModel.Reference import Library, PackageReference -__all__ = [] -__api__ = __all__ - @export class DOMParserException(ParserException): diff --git a/pyVHDLParser/Graph/CompileOrder.py b/pyVHDLParser/Graph/CompileOrder.py index 63e5a9fac..dc0435775 100644 --- a/pyVHDLParser/Graph/CompileOrder.py +++ b/pyVHDLParser/Graph/CompileOrder.py @@ -26,14 +26,11 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Graph.Graph import Graph as BaseGraph from pyVHDLParser.Graph.Graph import Node as BaseNode -__all__ = [] -__api__ = __all__ - @export class Graph(BaseGraph): diff --git a/pyVHDLParser/Graph/Graph.py b/pyVHDLParser/Graph/Graph.py index 7b4994282..d979a7047 100644 --- a/pyVHDLParser/Graph/Graph.py +++ b/pyVHDLParser/Graph/Graph.py @@ -28,10 +28,7 @@ # load dependencies from enum import Enum -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/Groups/Comment.py b/pyVHDLParser/Groups/Comment.py index f23c66408..1c53ce89f 100644 --- a/pyVHDLParser/Groups/Comment.py +++ b/pyVHDLParser/Groups/Comment.py @@ -26,15 +26,12 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock from pyVHDLParser.Blocks.Common import WhitespaceBlock, LinebreakBlock, IndentationBlock from pyVHDLParser.Groups import ParserState, GroupParserException, Group -__all__ = [] -__api__ = __all__ - @export class CommentGroup(Group): diff --git a/pyVHDLParser/Groups/Concurrent.py b/pyVHDLParser/Groups/Concurrent.py index 40114eb7b..175ddbea0 100644 --- a/pyVHDLParser/Groups/Concurrent.py +++ b/pyVHDLParser/Groups/Concurrent.py @@ -26,15 +26,12 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Reporting.Assert import AssertBlock from pyVHDLParser.Blocks.Reporting.Report import ReportBlock from pyVHDLParser.Groups import ParserState, Group, GroupParserException -__all__ = [] -__api__ = __all__ - @export class AssertGroup(Group): diff --git a/pyVHDLParser/Groups/DesignUnit.py b/pyVHDLParser/Groups/DesignUnit.py index 60960961e..0f826cb1a 100644 --- a/pyVHDLParser/Groups/DesignUnit.py +++ b/pyVHDLParser/Groups/DesignUnit.py @@ -29,7 +29,7 @@ from collections import ChainMap from itertools import chain -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock @@ -50,9 +50,6 @@ from pyVHDLParser.Groups.Sequential.Procedure import ProcedureGroup from pyVHDLParser.Groups.Sequential.Process import ProcessGroup -__all__ = [] -__api__ = __all__ - @export class ContextGroup(Group): diff --git a/pyVHDLParser/Groups/List.py b/pyVHDLParser/Groups/List.py index 06363f83b..8e996eb6a 100644 --- a/pyVHDLParser/Groups/List.py +++ b/pyVHDLParser/Groups/List.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock @@ -35,9 +35,6 @@ from pyVHDLParser.Groups import ParserState, GroupParserException, Group, EndOfDocumentGroup from pyVHDLParser.Groups.Comment import WhitespaceGroup, CommentGroup -__all__ = [] -__api__ = __all__ - @export class GenericListGroup(Group): diff --git a/pyVHDLParser/Groups/Object.py b/pyVHDLParser/Groups/Object.py index 35890b90a..d3efa2d83 100644 --- a/pyVHDLParser/Groups/Object.py +++ b/pyVHDLParser/Groups/Object.py @@ -26,7 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Object.Variable import VariableDeclarationBlock from pyVHDLParser.Blocks.Object.Signal import SignalDeclarationBlock @@ -35,9 +35,6 @@ from pyVHDLParser.Blocks.Reference.Use import EndBlock, StartBlock from pyVHDLParser.Groups import ParserState, GroupParserException, Group -__all__ = [] -__api__ = __all__ - @export class ConstantGroup(Group): diff --git a/pyVHDLParser/Groups/Reference.py b/pyVHDLParser/Groups/Reference.py index f58af8632..7fea56a3c 100644 --- a/pyVHDLParser/Groups/Reference.py +++ b/pyVHDLParser/Groups/Reference.py @@ -26,14 +26,11 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Reference import Library, Use from pyVHDLParser.Groups import ParserState, GroupParserException, Group -__all__ = [] -__api__ = __all__ - @export class LibraryGroup(Group): diff --git a/pyVHDLParser/Groups/Sequential/Function.py b/pyVHDLParser/Groups/Sequential/Function.py index 44b03bfb2..30065bd40 100644 --- a/pyVHDLParser/Groups/Sequential/Function.py +++ b/pyVHDLParser/Groups/Sequential/Function.py @@ -29,7 +29,7 @@ from collections import ChainMap from itertools import chain -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import EndToken from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock @@ -47,9 +47,6 @@ from pyVHDLParser.Groups.Object import ConstantGroup, VariableGroup from pyVHDLParser.Groups.Reference import UseGroup -__all__ = [] -__api__ = __all__ - @export class FunctionGroup(Group): diff --git a/pyVHDLParser/Groups/Sequential/Procedure.py b/pyVHDLParser/Groups/Sequential/Procedure.py index 8bb89960c..fe6eb5157 100644 --- a/pyVHDLParser/Groups/Sequential/Procedure.py +++ b/pyVHDLParser/Groups/Sequential/Procedure.py @@ -29,7 +29,7 @@ from collections import ChainMap from itertools import chain -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock @@ -45,9 +45,6 @@ from pyVHDLParser.Groups.Object import ConstantGroup, VariableGroup from pyVHDLParser.Groups.Reference import UseGroup -__all__ = [] -__api__ = __all__ - @export class ProcedureGroup(Group): diff --git a/pyVHDLParser/Groups/Sequential/Process.py b/pyVHDLParser/Groups/Sequential/Process.py index f91446fbc..ee5c22715 100644 --- a/pyVHDLParser/Groups/Sequential/Process.py +++ b/pyVHDLParser/Groups/Sequential/Process.py @@ -29,7 +29,7 @@ from collections import ChainMap from itertools import chain -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock @@ -45,9 +45,6 @@ from pyVHDLParser.Groups.Object import ConstantGroup, VariableGroup from pyVHDLParser.Groups.Reference import UseGroup -__all__ = [] -__api__ = __all__ - @export class ProcessGroup(Group): diff --git a/pyVHDLParser/Groups/__init__.py b/pyVHDLParser/Groups/__init__.py index 1d7cd1c17..524a7e563 100644 --- a/pyVHDLParser/Groups/__init__.py +++ b/pyVHDLParser/Groups/__init__.py @@ -29,9 +29,9 @@ from types import FunctionType from typing import Iterator, Callable, List, Generator, Any, Dict -from pyTerminalUI import LineTerminal +from pyTooling.TerminalUI import LineTerminal -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser import StartOfDocument, EndOfDocument, StartOfSnippet, EndOfSnippet from pyVHDLParser.Base import ParserException @@ -41,9 +41,6 @@ from pyVHDLParser.Blocks.Sequential import Package, PackageBody from pyVHDLParser.Blocks.Structural import Entity, Architecture, Configuration -__all__ = [] -__api__ = __all__ - @export class GroupParserException(ParserException): diff --git a/pyVHDLParser/NetlistModel/NetlistModel.py b/pyVHDLParser/NetlistModel/NetlistModel.py index 43d7b1b16..c4bf62e9a 100644 --- a/pyVHDLParser/NetlistModel/NetlistModel.py +++ b/pyVHDLParser/NetlistModel/NetlistModel.py @@ -26,10 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/SimulationModel/EventSystem.py b/pyVHDLParser/SimulationModel/EventSystem.py index 67e44764e..a5f9dd183 100644 --- a/pyVHDLParser/SimulationModel/EventSystem.py +++ b/pyVHDLParser/SimulationModel/EventSystem.py @@ -26,10 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/SimulationModel/SimulationModel.py b/pyVHDLParser/SimulationModel/SimulationModel.py index 5fbdba7e1..fb6a1f60d 100644 --- a/pyVHDLParser/SimulationModel/SimulationModel.py +++ b/pyVHDLParser/SimulationModel/SimulationModel.py @@ -26,13 +26,10 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.SimulationModel.EventSystem import ProjectedWaveform, Waveform, Scheduler, Event -__all__ = [] -__api__ = __all__ - @export class Simulation: diff --git a/pyVHDLParser/Token/Keywords.py b/pyVHDLParser/Token/Keywords.py index 7419a1d31..65800d953 100644 --- a/pyVHDLParser/Token/Keywords.py +++ b/pyVHDLParser/Token/Keywords.py @@ -26,14 +26,11 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import Token, WordToken, VHDLToken, CharacterToken from pyVHDLParser.Token.Parser import TokenizerException -__all__ = [] -__api__ = __all__ - @export class SpecificVHDLToken(VHDLToken): diff --git a/pyVHDLParser/Token/Parser.py b/pyVHDLParser/Token/Parser.py index 4472f7708..994624c74 100644 --- a/pyVHDLParser/Token/Parser.py +++ b/pyVHDLParser/Token/Parser.py @@ -29,7 +29,7 @@ from enum import Enum from typing import Iterator -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser import SourceCodePosition from pyVHDLParser.Base import ParserException @@ -37,9 +37,6 @@ from pyVHDLParser.Token import CharacterLiteralToken, StringLiteralToken, ExtendedIdentifier, DirectiveToken, IntegerLiteralToken, RealLiteralToken from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, SingleLineCommentToken, MultiLineCommentToken, LinebreakToken -__all__ = [] -__api__ = __all__ - @export class TokenizerException(ParserException): diff --git a/pyVHDLParser/Token/__init__.py b/pyVHDLParser/Token/__init__.py index 1f70d5d82..60f7bb794 100644 --- a/pyVHDLParser/Token/__init__.py +++ b/pyVHDLParser/Token/__init__.py @@ -28,15 +28,11 @@ # load dependencies from typing import Iterator -from pydecor.decorators import export +from pyTooling.Decorators import export from pyVHDLParser import SourceCodePosition, StartOfDocument, EndOfDocument, StartOfSnippet, EndOfSnippet from pyVHDLParser.Base import ParserException -__all__ = [] -__api__ = __all__ - - __CHARACTER_TRANSLATION = { "\r": "«\\r»", diff --git a/pyVHDLParser/TypeSystem/Package.py b/pyVHDLParser/TypeSystem/Package.py index 356190c8f..ddc6c19e0 100644 --- a/pyVHDLParser/TypeSystem/Package.py +++ b/pyVHDLParser/TypeSystem/Package.py @@ -26,10 +26,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/TypeSystem/TypeSystem.py b/pyVHDLParser/TypeSystem/TypeSystem.py index c1d217721..d23e8e24a 100644 --- a/pyVHDLParser/TypeSystem/TypeSystem.py +++ b/pyVHDLParser/TypeSystem/TypeSystem.py @@ -28,7 +28,7 @@ # load dependencies from enum import Enum, unique -from pydecor.decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/__init__.py b/pyVHDLParser/__init__.py index 4b70e9a79..36c290056 100644 --- a/pyVHDLParser/__init__.py +++ b/pyVHDLParser/__init__.py @@ -33,10 +33,7 @@ # ============================================================================== # # load dependencies -from pydecor.decorators import export - -__all__ = [] -__api__ = __all__ +from pyTooling.Decorators import export @export diff --git a/requirements.txt b/requirements.txt index b4a1ecfa2..015c2a98b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,6 @@ colorama>=0.4.4 py-flags>=1.1.4 -pydecor>=2.0.1 -pyExceptions>=1.0.1 -pyAttributes>=2.1.0 -pyCallBy>=1.1.1 -pyTerminalUI>=1.3.4 -pyVHDLModel>=0.9.0 +pyTooling>=1.7.0 +pyAttributes>=2.3.4 +pyVHDLModel==0.14.1 From ceb20173ce4a6ba936ba1aa9a70b847a88cbcd58 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 18:04:03 +0100 Subject: [PATCH 06/11] Updates to match pyVHDLModel. --- README.md | 6 ++-- doc/BlockStream/BlockGenerator.rst | 2 -- doc/BlockStream/ControlStructures/Case.rst | 4 +-- doc/BlockStream/ControlStructures/Exit.rst | 2 +- doc/BlockStream/ControlStructures/For.rst | 4 +-- doc/BlockStream/ControlStructures/If.rst | 2 +- doc/BlockStream/ControlStructures/Next.rst | 2 +- doc/BlockStream/ControlStructures/Return.rst | 2 +- doc/BlockStream/Expressions.rst | 32 +++++++++---------- doc/BlockStream/Objects/Constant.rst | 2 +- doc/BlockStream/Objects/Signal.rst | 2 +- doc/BlockStream/Objects/Variable.rst | 2 +- doc/BlockStream/References/Library.rst | 4 +-- doc/BlockStream/References/index.rst | 2 +- doc/LanguageModel/Miscellaneous.rst | 8 ++--- doc/conf.py | 2 +- .../DocumentModel/DesignUnit/Architecture.py | 4 +-- .../DocumentModel/DesignUnit/Context.py | 4 +-- .../DocumentModel/DesignUnit/Entity.py | 4 +-- .../DocumentModel/DesignUnit/Package.py | 6 ++-- .../DocumentModel/DesignUnit/PackageBody.py | 6 ++-- .../ObjectDeclaration/__init__.py | 4 +-- .../DocumentModel/Reference/__init__.py | 6 ++-- .../DocumentModel/Sequential/Function.py | 10 +++--- pyVHDLParser/DocumentModel/__init__.py | 10 +++--- tests/issue/18/Issue_18.py | 2 ++ tests/unit/Common.py | 2 +- 27 files changed, 68 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 1186424bb..ebd786bee 100644 --- a/README.md +++ b/README.md @@ -387,9 +387,9 @@ The example generates: ``` [StartOfDocumentBlock] [Blocks.CommentBlock '-- Copryright 2016\n' at (line: 1, col: 1) .. (line: 1, col: 19)] -[Library.LibraryBlock 'library ' at (line: 2, col: 1) .. (line: 2, col: 8)] -[Library.LibraryNameBlock 'IEEE' at (line: 2, col: 9) .. (line: 2, col: 13)] -[Library.LibraryEndBlock ';' at (line: 2, col: 13) .. (line: 2, col: 13)] +[LibraryStatement.LibraryBlock 'library ' at (line: 2, col: 1) .. (line: 2, col: 8)] +[LibraryStatement.LibraryNameBlock 'IEEE' at (line: 2, col: 9) .. (line: 2, col: 13)] +[LibraryStatement.LibraryEndBlock ';' at (line: 2, col: 13) .. (line: 2, col: 13)] [LinebreakBlock at (line: 2, col: 14) .. (line: 2, col: 14)] [Use.UseBlock 'use ' at (line: 3, col: 1) .. (line: 3, col: 8)] [Use.UseNameBlock 'IEEE.std_logic_1164.all' at (line: 3, col: 9) .. (line: 3, col: 32)] diff --git a/doc/BlockStream/BlockGenerator.rst b/doc/BlockStream/BlockGenerator.rst index 4f2f3c3d5..a7ccaaa66 100644 --- a/doc/BlockStream/BlockGenerator.rst +++ b/doc/BlockStream/BlockGenerator.rst @@ -1,4 +1,2 @@ - - Block Generator ############### diff --git a/doc/BlockStream/ControlStructures/Case.rst b/doc/BlockStream/ControlStructures/Case.rst index c7ec6a20f..b6f93e398 100644 --- a/doc/BlockStream/ControlStructures/Case.rst +++ b/doc/BlockStream/ControlStructures/Case.rst @@ -14,7 +14,7 @@ ArrowBlock WhenExpressionBlock ------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByCharORClosingRoundBracket` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByCharORClosingRoundBracket` WhenBlock --------- @@ -29,7 +29,7 @@ IsBlock CaseExpressionBlock ------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordORClosingRoundBracket` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordORClosingRoundBracket` CaseBlock --------- diff --git a/doc/BlockStream/ControlStructures/Exit.rst b/doc/BlockStream/ControlStructures/Exit.rst index f0170879f..1539b4000 100644 --- a/doc/BlockStream/ControlStructures/Exit.rst +++ b/doc/BlockStream/ControlStructures/Exit.rst @@ -10,7 +10,7 @@ EndBlock ExitConditionBlock ------------------ -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` ExitBlock diff --git a/doc/BlockStream/ControlStructures/For.rst b/doc/BlockStream/ControlStructures/For.rst index ec95894b1..74e4d29d7 100644 --- a/doc/BlockStream/ControlStructures/For.rst +++ b/doc/BlockStream/ControlStructures/For.rst @@ -17,12 +17,12 @@ LoopBlock ExpressionBlockEndedByLoopORToORDownto -------------------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordOrToOrDownto` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordOrToOrDownto` ExpressionBlockEndedByLoop -------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordORClosingRoundBracket` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordORClosingRoundBracket` LoopIterationDirectionBlock --------------------------- diff --git a/doc/BlockStream/ControlStructures/If.rst b/doc/BlockStream/ControlStructures/If.rst index 2b093cee9..a11206ea5 100644 --- a/doc/BlockStream/ControlStructures/If.rst +++ b/doc/BlockStream/ControlStructures/If.rst @@ -19,7 +19,7 @@ ElseBlock ExpressionBlockEndedByThen -------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordORClosingRoundBracket` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordORClosingRoundBracket` IfConditionBlock ---------------- diff --git a/doc/BlockStream/ControlStructures/Next.rst b/doc/BlockStream/ControlStructures/Next.rst index 96356230b..a1c861d2f 100644 --- a/doc/BlockStream/ControlStructures/Next.rst +++ b/doc/BlockStream/ControlStructures/Next.rst @@ -9,7 +9,7 @@ EndBlock NextConditionBlock ------------------ -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` NextBlock --------- diff --git a/doc/BlockStream/ControlStructures/Return.rst b/doc/BlockStream/ControlStructures/Return.rst index ce3f66506..72dd9b04c 100644 --- a/doc/BlockStream/ControlStructures/Return.rst +++ b/doc/BlockStream/ControlStructures/Return.rst @@ -9,7 +9,7 @@ EndBlock ReturnExpressionBlock --------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` ReturnBlock ----------- diff --git a/doc/BlockStream/Expressions.rst b/doc/BlockStream/Expressions.rst index a1df432b1..1c340af1e 100644 --- a/doc/BlockStream/Expressions.rst +++ b/doc/BlockStream/Expressions.rst @@ -1,18 +1,18 @@ Expressions ########### -Expression blocks are base-classes for a specific expression implementation. All -four expression base-classes are derived from another base-class called :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock` +BaseExpression blocks are base-classes for a specific expression implementation. All +four expression base-classes are derived from another base-class called :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock` E.g. :class:`~pyVHDLParser.Blocks.Object.Constant.ConstantDeclarationDefaultExpressionBlock` -is derived from :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon`. +is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon`. -Generic Expression Form +Generic BaseExpression Form *********************** ExpressionBlock --------------- -**Condensed definition of class** :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock`: +**Condensed definition of class** :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock`: .. code-block:: Python @@ -61,29 +61,29 @@ ExpressionBlock -Specific Expression Forms -************************* +Specific BaseExpression Forms +***************************** Expressions can be ended by: ``)`` or a user-defined character - See :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByCharORClosingRoundBracket` + See :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByCharORClosingRoundBracket` * ``)`` or a user-defined keyword - See :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordORClosingRoundBracket` + See :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordORClosingRoundBracket` * ``to`` or ``downto`` keyword - See :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByKeywordOrToOrDownto` + See :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByKeywordOrToOrDownto` * ``;`` - See :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` + See :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` ExpressionBlockEndedByCharORClosingRoundBracket ----------------------------------------------- -This block is derived from :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock`. +This block is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock`. It implements an expression that is either ended by a closing round bracket (``)``) or a user-defined character. When this base-class is inherited, the user needs to overwrite: @@ -98,7 +98,7 @@ needs to overwrite: The block that is generated when exiting the block. -**Condensed definition of class** :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlockEndedByCharORClosingRoundBracket`: +**Condensed definition of class** :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedByCharORClosingRoundBracket`: .. code-block:: Python @@ -122,14 +122,14 @@ needs to overwrite: ExpressionBlockEndedByKeywordORClosingRoundBracket -------------------------------------------------- -This block is derived from :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock`. +This block is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock`. ExpressionBlockEndedByKeywordOrToOrDownto ----------------------------------------- -This block is derived from :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock`. +This block is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock`. ExpressionBlockEndedBySemicolon ------------------------------- -This block is derived from :class:`~pyVHDLParser.Blocks.Expression.ExpressionBlock`. +This block is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlock`. diff --git a/doc/BlockStream/Objects/Constant.rst b/doc/BlockStream/Objects/Constant.rst index 1a5791ffa..419d261af 100644 --- a/doc/BlockStream/Objects/Constant.rst +++ b/doc/BlockStream/Objects/Constant.rst @@ -9,7 +9,7 @@ ConstantDeclarationEndMarkerBlock ConstantDeclarationDefaultExpressionBlock ----------------------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` ConstantDeclarationBlock ------------------------ diff --git a/doc/BlockStream/Objects/Signal.rst b/doc/BlockStream/Objects/Signal.rst index 55d7f85fb..bf99a3fd1 100644 --- a/doc/BlockStream/Objects/Signal.rst +++ b/doc/BlockStream/Objects/Signal.rst @@ -9,7 +9,7 @@ SignalDeclarationEndMarkerBlock SignalDeclarationDefaultExpressionBlock --------------------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` SignalDeclarationBlock ---------------------- diff --git a/doc/BlockStream/Objects/Variable.rst b/doc/BlockStream/Objects/Variable.rst index d291142be..21d986158 100644 --- a/doc/BlockStream/Objects/Variable.rst +++ b/doc/BlockStream/Objects/Variable.rst @@ -9,7 +9,7 @@ VariableDeclarationEndMarkerBlock VariableDeclarationDefaultExpressionBlock ----------------------------------------- -:class:`pyVHDLParser.Blocks.Expression.ExpressionBlockEndedBySemicolon` +:class:`pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon` VariableDeclarationBlock ------------------------ diff --git a/doc/BlockStream/References/Library.rst b/doc/BlockStream/References/Library.rst index a42000415..ca89026a7 100644 --- a/doc/BlockStream/References/Library.rst +++ b/doc/BlockStream/References/Library.rst @@ -1,2 +1,2 @@ -Library Statement -################# +LibraryStatement Statement +########################## diff --git a/doc/BlockStream/References/index.rst b/doc/BlockStream/References/index.rst index b975ebb98..ef0316745 100644 --- a/doc/BlockStream/References/index.rst +++ b/doc/BlockStream/References/index.rst @@ -3,6 +3,6 @@ References .. toctree:: - Library + LibraryStatement Use Context diff --git a/doc/LanguageModel/Miscellaneous.rst b/doc/LanguageModel/Miscellaneous.rst index d4d2ae16f..92c233631 100644 --- a/doc/LanguageModel/Miscellaneous.rst +++ b/doc/LanguageModel/Miscellaneous.rst @@ -37,19 +37,19 @@ a design has the two child nodes: ``Libraries`` and ``Documents``. Each is a .. _vhdlmodel-library: -Library -======= +LibraryStatement +================ A library contains multiple *design units*. Each design unit listed in a library is a *primary* design unit like: ``configuration``, ``entity``, ``package`` or ``context``. -**Condensed definition of class** :class:`~pyVHDLParser.VHDLModel.Library`: +**Condensed definition of class** :class:`~pyVHDLParser.VHDLModel.LibraryStatement`: .. code-block:: Python @Export - class Library(ModelEntity): + class LibraryStatement(ModelEntity): _contexts : List = None #: List of all contexts defined in a library. _configurations : List = None #: List of all configurations defined in a library. _entities : List = None #: List of all entities defined in a library. diff --git a/doc/conf.py b/doc/conf.py index 9d7122fb3..356696b74 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -220,7 +220,7 @@ def _LatestTagName(): extlinks = { 'issue': ('https://github.com/Paebbels/pyVHDLParser/issues/%s', 'issue #'), 'pull': ('https://github.com/Paebbels/pyVHDLParser/pull/%s', 'pull request #'), - 'src': ('https://github.com/Paebbels/pyVHDLParser/blob/master/pyMetaClasses/%s?ts=2', None), + 'src': ('https://github.com/Paebbels/pyVHDLParser/blob/master/pyVHDLParser/%s?ts=2', None), # 'test': ('https://github.com/Paebbels/pyVHDLParser/blob/master/test/%s?ts=2', None) } diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py index 77110c077..ff6135bd8 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py @@ -29,14 +29,14 @@ from pydecor import export from typing import List -from pyVHDLModel.VHDLModel import Architecture as ArchitectureVHDLModel +from pyVHDLModel.SyntaxModel import Architecture as ArchitectureVHDLModel from pyVHDLParser.Token.Keywords import IdentifierToken from pyVHDLParser.Blocks import BlockParserException from pyVHDLParser.Blocks.Object.Constant import ConstantDeclarationBlock from pyVHDLParser.Blocks.Structural import Architecture as ArchitectureBlocks from pyVHDLParser.Groups import ParserState -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Context.py b/pyVHDLParser/DocumentModel/DesignUnit/Context.py index 8cd6f23d4..97453a524 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Context.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Context.py @@ -28,13 +28,13 @@ # load dependencies from pydecor import export -from pyVHDLModel.VHDLModel import Context as ContextVHDLModel +from pyVHDLModel.SyntaxModel import Context as ContextVHDLModel from pyVHDLParser.Token.Keywords import IdentifierToken from pyVHDLParser.Blocks import BlockParserException from pyVHDLParser.Blocks.Reference import Context as ContextBlocks from pyVHDLParser.Groups import ParserState -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py index 6a9d28d2c..bd4e55df3 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py @@ -29,7 +29,7 @@ from pydecor import export from typing import List -from pyVHDLModel.VHDLModel import Entity as EntityVHDLModel +from pyVHDLModel.SyntaxModel import Entity as EntityVHDLModel from pyVHDLParser.Token.Keywords import IdentifierToken from pyVHDLParser.Blocks import BlockParserException @@ -39,7 +39,7 @@ from pyVHDLParser.Blocks.Structural import Entity as EntityBlocks from pyVHDLParser.Groups import ParserState from pyVHDLParser.Groups.List import GenericListGroup, PortListGroup -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference DEBUG = True diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Package.py b/pyVHDLParser/DocumentModel/DesignUnit/Package.py index 859be0483..28fe7e7a3 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Package.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Package.py @@ -29,7 +29,7 @@ from pydecor import export from typing import List -from pyVHDLModel.VHDLModel import Package as PackageVHDLModel +from pyVHDLModel.SyntaxModel import Package as PackageVHDLModel import pyVHDLParser.Blocks.InterfaceObject from pyVHDLParser.Token.Keywords import IdentifierToken @@ -39,7 +39,7 @@ from pyVHDLParser.Blocks.Sequential import Package as PackageBlock from pyVHDLParser.Groups import ParserState from pyVHDLParser.Groups.List import GenericListGroup -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference DEBUG = True @@ -126,7 +126,7 @@ def stateParseGeneric(cls, parserState: ParserState): #document, group): parserState.CurrentNode.AddGeneric(genericName) - def AddLibraryReferences(self, libraries : List[Library]): + def AddLibraryReferences(self, libraries : List[LibraryClause]): if ((DEBUG is True) and (len(libraries) > 0)): print("{DARK_CYAN}Adding libraries to package {GREEN}{0}{NOCOLOR}:".format(self._name, **Console.Foreground)) for library in libraries: if DEBUG: print(" {GREEN}{0!s}{NOCOLOR}".format(library, **Console.Foreground)) diff --git a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py index e558d4293..81d872e53 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py @@ -29,7 +29,7 @@ from pydecor import export from typing import List -from pyVHDLModel.VHDLModel import PackageBody as PackageBodyVHDLModel +from pyVHDLModel.SyntaxModel import PackageBody as PackageBodyVHDLModel import pyVHDLParser.Blocks.InterfaceObject from pyVHDLParser.Token.Keywords import IdentifierToken @@ -38,7 +38,7 @@ from pyVHDLParser.Blocks.Object.Constant import ConstantDeclarationBlock from pyVHDLParser.Blocks.Sequential import PackageBody as PackageBodyBlock from pyVHDLParser.Groups import ParserState -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference DEBUG = True @@ -159,7 +159,7 @@ def stateParsePort(cls, parserState: ParserState): #document, group): parserState.CurrentNode.AddPort(portName) - def AddLibraries(self, libraries: List[Library]): + def AddLibraries(self, libraries: List[LibraryClause]): if ((DEBUG is True) and (len(libraries) > 0)): print("{DARK_CYAN}Adding libraries to package body {GREEN}{0}{NOCOLOR}:".format(self._name, **Console.Foreground)) for library in libraries: if DEBUG: print(" {GREEN}{0!s}{NOCOLOR}".format(library, **Console.Foreground)) diff --git a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py index 1bdd101da..3f85b664a 100644 --- a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py +++ b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py @@ -26,9 +26,9 @@ # ============================================================================== # # load dependencies -from pyTooling.TerminalUI import LineTerminal +from pyTooling.TerminalUI import LineTerminal -from pyVHDLModel.VHDLModel import Constant as ConstantBase +from pyVHDLModel.SyntaxModel import Constant as ConstantBase from pyVHDLParser.Token.Keywords import IdentifierToken from pyVHDLParser.Blocks import BlockParserException diff --git a/pyVHDLParser/DocumentModel/Reference/__init__.py b/pyVHDLParser/DocumentModel/Reference/__init__.py index 4c3ea291f..7828b6069 100644 --- a/pyVHDLParser/DocumentModel/Reference/__init__.py +++ b/pyVHDLParser/DocumentModel/Reference/__init__.py @@ -26,14 +26,14 @@ # ============================================================================== # # load dependencies -from pyVHDLModel.VHDLModel import LibraryReference as LibraryReferenceModel, PackageReference as UseModel +from pyVHDLModel.SyntaxModel import LibraryClause as VHDLModel_LibraryClause, UseClause as VHDLModel_UseClause from pyVHDLParser.Token.Keywords import IdentifierToken, AllKeyword from pyVHDLParser.Blocks import BlockParserException from pyVHDLParser.Blocks.Reference import Library as LibraryBlocks, Use as UseBlocks -class Library(LibraryReferenceModel): +class LibraryClause(VHDLModel_LibraryClause): def __init__(self, libraryName): super().__init__() self._library = libraryName @@ -63,7 +63,7 @@ def __str__(self): return self._library -class PackageReference(UseModel): +class PackageReference(VHDLModel_UseClause): def __init__(self, libraryName, packageName, itemName): super().__init__() self._library = libraryName diff --git a/pyVHDLParser/DocumentModel/Sequential/Function.py b/pyVHDLParser/DocumentModel/Sequential/Function.py index 49f11ac46..7029d1be1 100644 --- a/pyVHDLParser/DocumentModel/Sequential/Function.py +++ b/pyVHDLParser/DocumentModel/Sequential/Function.py @@ -28,8 +28,8 @@ # load dependencies from typing import List -from pyTooling.TerminalUI import LineTerminal -from pyVHDLModel.VHDLModel import Function as FunctionModel +from pyTooling.TerminalUI import LineTerminal +from pyVHDLModel.SyntaxModel import Function as FunctionModel from pyVHDLParser.Token.Keywords import IdentifierToken from pyVHDLParser.Blocks import BlockParserException @@ -38,7 +38,7 @@ import pyVHDLParser.Blocks.InterfaceObject from pyVHDLParser.Blocks.Sequential import Function as FunctionBlock from pyVHDLParser.DocumentModel.ObjectDeclaration import Constant -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference # Type alias for type hinting ParserState = GroupToModelParser.GroupParserState @@ -118,7 +118,7 @@ def stateParseGeneric(cls, parserState: ParserState): parserState.CurrentNode.AddGeneric(genericName) - def AddLibraries(self, libraries: List[Library]): + def AddLibraries(self, libraries: List[LibraryClause]): if ((DEBUG is True) and (len(libraries) > 0)): print("{DARK_CYAN}Adding libraries to function {GREEN}{0}{NOCOLOR}:".format(self._name, **LineTerminal().Foreground)) for library in libraries: if DEBUG: print(" {GREEN}{0!s}{NOCOLOR}".format(library, **LineTerminal().Foreground)) @@ -143,7 +143,7 @@ def Print(self, indent=0): for lib in self._libraries: print("{indent}{DARK_CYAN}LIBRARY{NOCOLOR} {GREEN}{lib}{NOCOLOR};".format(indent=indentation, lib=lib, **LineTerminal().Foreground)) for use in self._uses: - print("{indent}{DARK_CYAN}USE {GREEN}{lib}{NOCOLOR}.{GREEN}{pack}{NOCOLOR}.{GREEN}{item}{NOCOLOR};".format(indent=indentation, lib=use._library, pack=use._function, item=use._item, **LineTerminal().Foreground)) + print("{indent}{DARK_CYAN}USE {GREEN}{lib}{NOCOLOR}.{GREEN}{pack}{NOCOLOR}.{GREEN}{item}{NOCOLOR};".format(indent=indentation, lib=use._configuration, pack=use._function, item=use._item, **LineTerminal().Foreground)) print() print("{indent}{DARK_CYAN}FUNCTION{NOCOLOR} {YELLOW}{name}{NOCOLOR} {DARK_CYAN}IS{NOCOLOR}".format(indent=indentation, name=self._name, **LineTerminal().Foreground)) if (len(self._genericItems) > 0): diff --git a/pyVHDLParser/DocumentModel/__init__.py b/pyVHDLParser/DocumentModel/__init__.py index ac678b46c..520f00cc5 100644 --- a/pyVHDLParser/DocumentModel/__init__.py +++ b/pyVHDLParser/DocumentModel/__init__.py @@ -28,8 +28,8 @@ from pathlib import Path from typing import List, Union -from pyTooling.Decorators import export -from pyVHDLModel.VHDLModel import Document as DocumentModel +from pyTooling.Decorators import export +from pyVHDLModel.SyntaxModel import Document as DocumentModel from pyVHDLParser.Base import ParserException from pyVHDLParser.Token.Parser import Tokenizer @@ -38,7 +38,7 @@ from pyVHDLParser.Groups.Comment import WhitespaceGroup from pyVHDLParser.Groups.DesignUnit import ContextGroup, EntityGroup, ArchitectureGroup, PackageBodyGroup, PackageGroup from pyVHDLParser.Groups.Reference import LibraryGroup, UseGroup -from pyVHDLParser.DocumentModel.Reference import Library, PackageReference +from pyVHDLParser.DocumentModel.Reference import LibraryClause, PackageReference @export @@ -50,7 +50,7 @@ def __init__(self, message, group): @export class Document(DocumentModel): - __libraries: List[Library] + __libraries: List[LibraryClause] __uses: List[PackageReference] def __init__(self, file: Union[Path, str]): # FIXME: parameter type @@ -102,7 +102,7 @@ def Parse(self, content=None): # FIXME: parameter type @classmethod def stateParse(cls, document, startOfDocumentGroup: Group): - from pyVHDLParser.DocumentModel.Reference import Library as LibraryModel, PackageReference as UseModel + from pyVHDLParser.DocumentModel.Reference import LibraryClause as LibraryModel, PackageReference as UseModel from pyVHDLParser.DocumentModel.DesignUnit.Context import Context as ContextModel from pyVHDLParser.DocumentModel.DesignUnit.Entity import Entity as EntityModel from pyVHDLParser.DocumentModel.DesignUnit.Architecture import Architecture as ArchitectureModel diff --git a/tests/issue/18/Issue_18.py b/tests/issue/18/Issue_18.py index 1f54eff37..c32047807 100644 --- a/tests/issue/18/Issue_18.py +++ b/tests/issue/18/Issue_18.py @@ -28,6 +28,7 @@ # load dependencies from pathlib import Path from unittest import TestCase +from pytest import mark from tests.IssueTester import SingleFileIssue @@ -37,6 +38,7 @@ exit(1) class Issue_18(TestCase, SingleFileIssue): + @mark.xfail def test_Tokenizer(self): file = Path(__file__).with_suffix(".vhdl") self.check_Tokenizer(file) diff --git a/tests/unit/Common.py b/tests/unit/Common.py index 6d1385b03..bd0559af9 100644 --- a/tests/unit/Common.py +++ b/tests/unit/Common.py @@ -30,7 +30,7 @@ from typing import List, Tuple, Any from flags import Flags -from pyMetaClasses import Singleton +from pyTooling.MetaClasses import Singleton from pyVHDLParser.Base import ParserException from pyVHDLParser.Token import StartOfDocumentToken, EndOfDocumentToken, Token, CharacterTranslation From 9dcf480e671be30345a532231a627ea2e51f0fdc Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 18:19:42 +0100 Subject: [PATCH 07/11] Added repository configuration files. --- .btd.yml | 9 ++++ .gitignore | 14 ++++-- .readthedocs.yml | 21 -------- pyproject.toml | 10 ++++ setup.py | 124 +++++++++++++++-------------------------------- 5 files changed, 70 insertions(+), 108 deletions(-) create mode 100644 .btd.yml delete mode 100644 .readthedocs.yml create mode 100644 pyproject.toml diff --git a/.btd.yml b/.btd.yml new file mode 100644 index 000000000..296c029b5 --- /dev/null +++ b/.btd.yml @@ -0,0 +1,9 @@ +input: doc +output: _build +requirements: requirements.txt +target: gh-pages +formats: [ html ] +images: + base: btdi/sphinx:pytooling + latex: btdi/latex +theme: https://codeload.GitHub.com/buildthedocs/sphinx.theme/tar.gz/v1 diff --git a/.gitignore b/.gitignore index 2ba568ea6..037c9286f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,18 +2,26 @@ __pycache__/ *.py[cod] -# Python installation packages -dist/ - # Coverage.py .coverage .cov coverage.xml +# setuptools +/build/**/*.* +/dist/**/*.* +/*.egg-info + +# Dependencies +!requirements.txt + # Sphinx doc/_build/ doc/pyVHDLParser/**/*.* !doc/pyVHDLParser/index.rst +# BuildTheDocs +doc/_theme/**/*.* + # IntelliJ project files /.idea/workspace.xml diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index 013c2d932..000000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: 2 - -submodules: - include: [] - -build: - image: latest - -python: - version: 3.8 - install: - - requirements: doc/requirements.txt - -sphinx: - builder: html - configuration: doc/conf.py - -formats: [] -# - htmlzip -# - pdf -# - epub diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..c2ddfb778 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,10 @@ +[build-system] +requires = [ + "pyTooling >= 1.7.0", + "setuptools >= 35.0.2", + "wheel >= 0.29.0" +] +build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 120 diff --git a/setup.py b/setup.py index ad24ca580..2702ebe55 100644 --- a/setup.py +++ b/setup.py @@ -6,97 +6,53 @@ # | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # |_| |___/ # ============================================================================= -# Authors: Patrick Lehmann -# -# Package installer: A streaming-based VHDL parser. -# -# -# License: -# ============================================================================ -# Copyright 2017-2021 Patrick Lehmann - Bötzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# ============================================================================ -# -from pathlib import Path -from setuptools import setup as setuptools_setup, find_packages as setuptools_find_packages - -gitHubNamespace = "Paebbels" -projectName = "pyVHDLParser" - -# Read README for upload to PyPI -readmeFile = Path("README.md") -with readmeFile.open("r") as file: - long_description = file.read() - -# Read requirements file and add them to package dependency list -requirementsFile = Path("requirements.txt") -with requirementsFile.open("r") as file: - requirements = [line for line in file.readlines()] - -# Derive URLs -sourceCodeURL = "https://github.com/{namespace}/{projectName}".format(namespace=gitHubNamespace, projectName=projectName) -documentationURL = "https://{namespace}.github.io/{projectName}/using/py/index.html".format(namespace=gitHubNamespace, projectName=projectName) - -# Assemble all package information -setuptools_setup( - name=projectName, - version="0.6.4", - - author="Patrick Lehmann", - author_email="Paebbels@gmail.com", - # maintainer="Patrick Lehmann", - # maintainer_email="Paebbels@gmail.com", - +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2014-2016 Technische Universität Dresden - Germany, Chair of VLSI-Design, Diagnostics and Architecture # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# # +# SPDX-License-Identifier: Apache-2.0 # +# ==================================================================================================================== # +# +"""\ +Package installer for 'A streaming-based VHDL parser'. +""" +from pathlib import Path +from pyTooling.Packaging import DescribePythonPackageHostedOnGitHub + +gitHubNamespace = "Paebbels" +packageName = "pyVHDLParser" +packageDirectory = packageName.replace(".", "/") +packageInformationFile = Path(f"{packageDirectory}/__init__.py") + +DescribePythonPackageHostedOnGitHub( + packageName=packageName, description="A streaming-based VHDL parser.", - long_description=long_description, - long_description_content_type="text/markdown", - - url=sourceCodeURL, - project_urls={ - 'Documentation': documentationURL, - 'Source Code': sourceCodeURL, - 'Issue Tracker': sourceCodeURL + "/issues" - }, - # download_url="https://github.com/Paebbels/pyVHDLParser/tarball/0.1.0", - - packages=setuptools_find_packages(), - entry_points={ - 'console_scripts': [ - "VHDLParser = pyVHDLParser.CLI.VHDLParser:main" - ] - }, + gitHubNamespace=gitHubNamespace, + sourceFileWithVersion=packageInformationFile, + developmentStatus="pre-alpha", classifiers=[ - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Development Status :: 2 - Pre-Alpha", - # "Development Status :: 3 - Alpha", - # "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Compilers", "Topic :: Software Development :: Testing", "Topic :: Utilities" - ], - keywords="Python3 Parser VHDL Streaming Documentation", - - python_requires='>=3.8', - install_requires=requirements, + ] ) From 3c39fec6a26a8316c76d8768ef69cb73b3c55526 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 18:26:22 +0100 Subject: [PATCH 08/11] Added "pragma: no cover" in test cases. --- tests/IssueTester.py | 2 +- tests/issue/15/Issue_15.py | 2 +- tests/issue/18/Issue_18.py | 2 +- tests/unit/DocumentModel/Architecture.py | 2 +- tests/unit/DocumentModel/Context.py | 2 +- tests/unit/DocumentModel/Entity.py | 2 +- tests/unit/DocumentModel/Package.py | 2 +- tests/unit/DocumentModel/PackageBody.py | 2 +- tests/unit/SimpleBlockSequences/Architecture.py | 2 +- tests/unit/SimpleBlockSequences/Assert.py | 2 +- tests/unit/SimpleBlockSequences/Constant.py | 2 +- tests/unit/SimpleBlockSequences/Context.py | 2 +- tests/unit/SimpleBlockSequences/Entity.py | 2 +- tests/unit/SimpleBlockSequences/Function.py | 2 +- tests/unit/SimpleBlockSequences/Library.py | 2 +- tests/unit/SimpleBlockSequences/Package.py | 2 +- tests/unit/SimpleBlockSequences/PackageBody.py | 2 +- tests/unit/SimpleBlockSequences/PortList.py | 2 +- tests/unit/SimpleBlockSequences/Procedure.py | 2 +- tests/unit/SimpleBlockSequences/Process.py | 2 +- tests/unit/SimpleBlockSequences/Signal.py | 2 +- tests/unit/SimpleBlockSequences/Use.py | 2 +- tests/unit/Tokenizer/Tokens.py | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/IssueTester.py b/tests/IssueTester.py index 6a9f79988..d95b8de48 100644 --- a/tests/IssueTester.py +++ b/tests/IssueTester.py @@ -29,7 +29,7 @@ from tests.Linking import TokenizerChecks -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/issue/15/Issue_15.py b/tests/issue/15/Issue_15.py index e66535f95..9fbc31608 100644 --- a/tests/issue/15/Issue_15.py +++ b/tests/issue/15/Issue_15.py @@ -31,7 +31,7 @@ from tests.IssueTester import SingleFileIssue -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/issue/18/Issue_18.py b/tests/issue/18/Issue_18.py index c32047807..4534f1c49 100644 --- a/tests/issue/18/Issue_18.py +++ b/tests/issue/18/Issue_18.py @@ -32,7 +32,7 @@ from tests.IssueTester import SingleFileIssue -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/DocumentModel/Architecture.py b/tests/unit/DocumentModel/Architecture.py index db7e3e352..3e7751ba7 100644 --- a/tests/unit/DocumentModel/Architecture.py +++ b/tests/unit/DocumentModel/Architecture.py @@ -5,7 +5,7 @@ from tests.unit.Common import Initializer -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/DocumentModel/Context.py b/tests/unit/DocumentModel/Context.py index 67d29c64b..8a74e201c 100644 --- a/tests/unit/DocumentModel/Context.py +++ b/tests/unit/DocumentModel/Context.py @@ -5,7 +5,7 @@ from tests.unit.Common import Initializer -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/DocumentModel/Entity.py b/tests/unit/DocumentModel/Entity.py index bf31e7533..ed29d95be 100644 --- a/tests/unit/DocumentModel/Entity.py +++ b/tests/unit/DocumentModel/Entity.py @@ -5,7 +5,7 @@ from tests.unit.Common import Initializer -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/DocumentModel/Package.py b/tests/unit/DocumentModel/Package.py index 905e4c98a..e68693b33 100644 --- a/tests/unit/DocumentModel/Package.py +++ b/tests/unit/DocumentModel/Package.py @@ -5,7 +5,7 @@ from tests.unit.Common import Initializer -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/DocumentModel/PackageBody.py b/tests/unit/DocumentModel/PackageBody.py index d86ece704..ee2df651a 100644 --- a/tests/unit/DocumentModel/PackageBody.py +++ b/tests/unit/DocumentModel/PackageBody.py @@ -5,7 +5,7 @@ from tests.unit.Common import Initializer -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Architecture.py b/tests/unit/SimpleBlockSequences/Architecture.py index 392143315..492c27ac7 100644 --- a/tests/unit/SimpleBlockSequences/Architecture.py +++ b/tests/unit/SimpleBlockSequences/Architecture.py @@ -8,7 +8,7 @@ from tests.unit.Common import Result, Initializer, ExpectedTokenStream, ExpectedBlockStream, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Assert.py b/tests/unit/SimpleBlockSequences/Assert.py index 21da33cd0..e0b8a0bb3 100644 --- a/tests/unit/SimpleBlockSequences/Assert.py +++ b/tests/unit/SimpleBlockSequences/Assert.py @@ -9,7 +9,7 @@ from tests.unit.Common import Initializer, ExpectedTokenStream, ExpectedBlockStream, ExpectedDataMixin, TokenLinking, TokenSequence, BlockSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Constant.py b/tests/unit/SimpleBlockSequences/Constant.py index 7c36f3b30..2cbcda3e0 100644 --- a/tests/unit/SimpleBlockSequences/Constant.py +++ b/tests/unit/SimpleBlockSequences/Constant.py @@ -9,7 +9,7 @@ from tests.unit.Common import Initializer, ExpectedTokenStream, ExpectedBlockStream, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Context.py b/tests/unit/SimpleBlockSequences/Context.py index 3517c4bd0..e6668dfa0 100644 --- a/tests/unit/SimpleBlockSequences/Context.py +++ b/tests/unit/SimpleBlockSequences/Context.py @@ -8,7 +8,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Entity.py b/tests/unit/SimpleBlockSequences/Entity.py index ecfcc76dc..74ef05a63 100644 --- a/tests/unit/SimpleBlockSequences/Entity.py +++ b/tests/unit/SimpleBlockSequences/Entity.py @@ -10,7 +10,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, BlockSequenceWithParserError, ExpectedTokenStream, ExpectedBlockStream, TokenLinking -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Function.py b/tests/unit/SimpleBlockSequences/Function.py index 1d57fae70..66e9fdc24 100644 --- a/tests/unit/SimpleBlockSequences/Function.py +++ b/tests/unit/SimpleBlockSequences/Function.py @@ -8,7 +8,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Library.py b/tests/unit/SimpleBlockSequences/Library.py index 261c19cfd..2f7b90d3b 100644 --- a/tests/unit/SimpleBlockSequences/Library.py +++ b/tests/unit/SimpleBlockSequences/Library.py @@ -7,7 +7,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Package.py b/tests/unit/SimpleBlockSequences/Package.py index 177418073..e2fc9f4d3 100644 --- a/tests/unit/SimpleBlockSequences/Package.py +++ b/tests/unit/SimpleBlockSequences/Package.py @@ -10,7 +10,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream, BlockSequenceWithParserError, TokenLinking -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/PackageBody.py b/tests/unit/SimpleBlockSequences/PackageBody.py index b402b8fce..4855d8329 100644 --- a/tests/unit/SimpleBlockSequences/PackageBody.py +++ b/tests/unit/SimpleBlockSequences/PackageBody.py @@ -10,7 +10,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream, TokenLinking, BlockSequenceWithParserError -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/PortList.py b/tests/unit/SimpleBlockSequences/PortList.py index 7919036b0..964d9f290 100644 --- a/tests/unit/SimpleBlockSequences/PortList.py +++ b/tests/unit/SimpleBlockSequences/PortList.py @@ -10,7 +10,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenLinking, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Procedure.py b/tests/unit/SimpleBlockSequences/Procedure.py index 24ad2fc24..4607532eb 100644 --- a/tests/unit/SimpleBlockSequences/Procedure.py +++ b/tests/unit/SimpleBlockSequences/Procedure.py @@ -8,7 +8,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Process.py b/tests/unit/SimpleBlockSequences/Process.py index 8be49db28..2c64fab8f 100644 --- a/tests/unit/SimpleBlockSequences/Process.py +++ b/tests/unit/SimpleBlockSequences/Process.py @@ -9,7 +9,7 @@ from tests.unit.Common import Initializer, ExpectedTokenStream, ExpectedBlockStream, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Signal.py b/tests/unit/SimpleBlockSequences/Signal.py index 2acbec2e8..57300aa9d 100644 --- a/tests/unit/SimpleBlockSequences/Signal.py +++ b/tests/unit/SimpleBlockSequences/Signal.py @@ -9,7 +9,7 @@ from tests.unit.Common import Initializer, ExpectedTokenStream, ExpectedBlockStream, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/SimpleBlockSequences/Use.py b/tests/unit/SimpleBlockSequences/Use.py index ed6af135b..71aba39f3 100644 --- a/tests/unit/SimpleBlockSequences/Use.py +++ b/tests/unit/SimpleBlockSequences/Use.py @@ -8,7 +8,7 @@ from tests.unit.Common import Initializer, ExpectedDataMixin, LinkingTests, TokenSequence, BlockSequence, ExpectedTokenStream, ExpectedBlockStream -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) diff --git a/tests/unit/Tokenizer/Tokens.py b/tests/unit/Tokenizer/Tokens.py index 21f50b63b..6d7bb98c6 100644 --- a/tests/unit/Tokenizer/Tokens.py +++ b/tests/unit/Tokenizer/Tokens.py @@ -7,7 +7,7 @@ from tests.unit.Common import ExpectedDataMixin, ExpectedTokenStream, TokenSequence -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover print("ERROR: you called a testcase declaration file as an executable module.") print("Use: 'python -m unitest '") exit(1) From 691977b2d61c870c7d5edc2cd2e522df957ce15c Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 18:28:46 +0100 Subject: [PATCH 09/11] Added missing requirement for 'pyTooling.TerminalUI'. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 015c2a98b..507de9aea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,6 @@ colorama>=0.4.4 py-flags>=1.1.4 pyTooling>=1.7.0 +pyTooling.TerminalUI>=1.5.5 pyAttributes>=2.3.4 pyVHDLModel==0.14.1 From 65434212bb8a6206c20f8393cd8490dc5ac6510f Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 19 Dec 2021 19:04:39 +0100 Subject: [PATCH 10/11] Adjusted file headers to new format. --- pyVHDLParser/Base.py | 54 +++++++------- .../Blocks/Assignment/SignalAssignment.py | 57 +++++++-------- .../Blocks/Assignment/VariableAssignment.py | 57 +++++++-------- pyVHDLParser/Blocks/Assignment/__init__.py | 54 +++++++------- .../Blocks/Attribute/AttributeDeclaration.py | 57 +++++++-------- .../Attribute/AttributeSpecification.py | 57 +++++++-------- pyVHDLParser/Blocks/Attribute/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Comment.py | 57 +++++++-------- pyVHDLParser/Blocks/Common.py | 57 +++++++-------- pyVHDLParser/Blocks/ControlStructure/Case.py | 57 +++++++-------- pyVHDLParser/Blocks/ControlStructure/Exit.py | 57 +++++++-------- .../Blocks/ControlStructure/ForLoop.py | 57 +++++++-------- pyVHDLParser/Blocks/ControlStructure/If.py | 57 +++++++-------- pyVHDLParser/Blocks/ControlStructure/Next.py | 57 +++++++-------- pyVHDLParser/Blocks/ControlStructure/Null.py | 57 +++++++-------- .../Blocks/ControlStructure/Return.py | 57 +++++++-------- .../Blocks/ControlStructure/WhileLoop.py | 57 +++++++-------- .../Blocks/ControlStructure/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Exception.py | 57 ++++++++------- pyVHDLParser/Blocks/Expression.py | 57 +++++++-------- pyVHDLParser/Blocks/Generate/CaseGenerate.py | 57 +++++++-------- pyVHDLParser/Blocks/Generate/ForGenerate.py | 57 +++++++-------- pyVHDLParser/Blocks/Generate/IfGenerate.py | 57 +++++++-------- pyVHDLParser/Blocks/Generate/__init__.py | 57 +++++++-------- pyVHDLParser/Blocks/Generic.py | 57 +++++++-------- pyVHDLParser/Blocks/Generic1.py | 57 +++++++-------- .../Instantiation/EntityInstantiation.py | 57 +++++++-------- .../Instantiation/FunctionInstantiation.py | 57 +++++++-------- .../Instantiation/PackageInstantiation.py | 57 +++++++-------- .../Instantiation/ProcedureInstantiation.py | 57 +++++++-------- pyVHDLParser/Blocks/Instantiation/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/InterfaceObject.py | 57 +++++++-------- pyVHDLParser/Blocks/List/GenericList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/GenericMapList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/ParameterList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/PortList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/PortMapList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/SensitivityList.py | 57 +++++++-------- pyVHDLParser/Blocks/List/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Object/Constant.py | 57 +++++++-------- pyVHDLParser/Blocks/Object/File.py | 55 +++++++------- pyVHDLParser/Blocks/Object/SharedVariable.py | 58 +++++++-------- pyVHDLParser/Blocks/Object/Signal.py | 57 +++++++-------- pyVHDLParser/Blocks/Object/Variable.py | 57 +++++++-------- pyVHDLParser/Blocks/Object/__init__.py | 57 +++++++-------- pyVHDLParser/Blocks/Reference/Context.py | 57 +++++++-------- pyVHDLParser/Blocks/Reference/Library.py | 57 +++++++-------- pyVHDLParser/Blocks/Reference/Use.py | 57 +++++++-------- pyVHDLParser/Blocks/Reference/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Reporting/Assert.py | 57 +++++++-------- pyVHDLParser/Blocks/Reporting/Report.py | 57 +++++++-------- pyVHDLParser/Blocks/Reporting/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Sequential/Function.py | 57 +++++++-------- pyVHDLParser/Blocks/Sequential/Package.py | 57 +++++++-------- pyVHDLParser/Blocks/Sequential/PackageBody.py | 57 +++++++-------- pyVHDLParser/Blocks/Sequential/Procedure.py | 57 +++++++-------- pyVHDLParser/Blocks/Sequential/Process.py | 57 +++++++-------- pyVHDLParser/Blocks/Sequential/__init__.py | 54 +++++++------- .../Blocks/Structural/Architecture.py | 57 +++++++-------- pyVHDLParser/Blocks/Structural/Block.py | 57 +++++++-------- pyVHDLParser/Blocks/Structural/Component.py | 57 +++++++-------- .../Blocks/Structural/Configuration.py | 57 +++++++-------- pyVHDLParser/Blocks/Structural/Entity.py | 57 +++++++-------- pyVHDLParser/Blocks/Structural/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/Type/SubType.py | 57 +++++++-------- pyVHDLParser/Blocks/Type/Type.py | 57 +++++++-------- pyVHDLParser/Blocks/Type/__init__.py | 54 +++++++------- pyVHDLParser/Blocks/__init__.py | 54 +++++++------- pyVHDLParser/CLI/Block.py | 49 +++++++------ pyVHDLParser/CLI/CodeDOM.py | 49 +++++++------ pyVHDLParser/CLI/Group.py | 49 +++++++------ pyVHDLParser/CLI/Token.py | 49 +++++++------ pyVHDLParser/CLI/VHDLParser.py | 49 +++++++------ pyVHDLParser/CLI/__init__.py | 49 +++++++------ pyVHDLParser/Common/Common.py | 57 +++++++-------- pyVHDLParser/Common/__init__.py | 55 +++++++------- pyVHDLParser/Decorators.py | 65 ++++++++--------- .../DocumentModel/DesignUnit/Architecture.py | 55 +++++++------- .../DocumentModel/DesignUnit/Context.py | 55 +++++++------- .../DocumentModel/DesignUnit/Entity.py | 55 +++++++------- .../DocumentModel/DesignUnit/Package.py | 55 +++++++------- .../DocumentModel/DesignUnit/PackageBody.py | 55 +++++++------- .../DocumentModel/DesignUnit/__init__.py | 29 ++++++++ .../ObjectDeclaration/__init__.py | 55 +++++++------- .../DocumentModel/Reference/__init__.py | 55 +++++++------- .../DocumentModel/Sequential/Function.py | 55 +++++++------- .../DocumentModel/Sequential/__init__.py | 54 +++++++------- pyVHDLParser/DocumentModel/__init__.py | 56 ++++++++------- pyVHDLParser/Filters/Comment.py | 55 +++++++------- pyVHDLParser/Filters/__init__.py | 54 +++++++------- pyVHDLParser/Functions.py | 55 +++++++------- pyVHDLParser/Graph/CompileOrder.py | 57 +++++++-------- pyVHDLParser/Graph/Graph.py | 57 +++++++-------- pyVHDLParser/Graph/__init__.py | 54 +++++++------- pyVHDLParser/Groups/Comment.py | 57 +++++++-------- pyVHDLParser/Groups/Concurrent.py | 57 +++++++-------- pyVHDLParser/Groups/DesignUnit.py | 57 +++++++-------- pyVHDLParser/Groups/List.py | 57 +++++++-------- pyVHDLParser/Groups/Object.py | 57 +++++++-------- pyVHDLParser/Groups/Reference.py | 57 +++++++-------- pyVHDLParser/Groups/Sequential/Function.py | 57 +++++++-------- pyVHDLParser/Groups/Sequential/Procedure.py | 57 +++++++-------- pyVHDLParser/Groups/Sequential/Process.py | 57 +++++++-------- pyVHDLParser/Groups/Sequential/__init__.py | 55 +++++++------- pyVHDLParser/Groups/__init__.py | 61 ++++++++-------- pyVHDLParser/LanguageModel/__init__.py | 55 +++++++------- pyVHDLParser/NetlistModel/NetlistModel.py | 57 +++++++-------- pyVHDLParser/NetlistModel/__init__.py | 54 +++++++------- pyVHDLParser/SimulationModel/EventSystem.py | 57 +++++++-------- .../SimulationModel/SimulationModel.py | 57 +++++++-------- pyVHDLParser/SimulationModel/__init__.py | 54 +++++++------- pyVHDLParser/StyleChecks/__init__.py | 54 +++++++------- pyVHDLParser/Token/Keywords.py | 59 +++++++-------- pyVHDLParser/Token/Parser.py | 57 +++++++-------- pyVHDLParser/Token/__init__.py | 59 +++++++-------- pyVHDLParser/TypeSystem/Package.py | 57 +++++++-------- pyVHDLParser/TypeSystem/TypeSystem.py | 57 +++++++-------- pyVHDLParser/TypeSystem/__init__.py | 54 +++++++------- pyVHDLParser/TypeSystem/std.py | 55 +++++++------- pyVHDLParser/TypeSystem/std_logic_1164.py | 55 +++++++------- pyVHDLParser/__init__.py | 72 ++++++++++--------- tests/Interfaces.py | 55 +++++++------- tests/IssueTester.py | 55 +++++++------- tests/Linking.py | 55 +++++++------- tests/__init__.py | 29 ++++++++ tests/issue/15/Issue_15.py | 57 +++++++-------- tests/issue/15/__init__.py | 37 +++++++--- tests/issue/18/Issue_18.py | 57 +++++++-------- tests/issue/18/__init__.py | 37 +++++++--- tests/unit/Common.py | 55 +++++++------- tests/unit/DocumentModel/Architecture.py | 29 ++++++++ tests/unit/DocumentModel/Context.py | 29 ++++++++ tests/unit/DocumentModel/Entity.py | 29 ++++++++ tests/unit/DocumentModel/Package.py | 29 ++++++++ tests/unit/DocumentModel/PackageBody.py | 29 ++++++++ tests/unit/DocumentModel/__init__.py | 45 +++++++----- .../unit/SimpleBlockSequences/Architecture.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Assert.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Constant.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Context.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Entity.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Function.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Library.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Package.py | 29 ++++++++ .../unit/SimpleBlockSequences/PackageBody.py | 29 ++++++++ tests/unit/SimpleBlockSequences/PortList.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Procedure.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Process.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Signal.py | 29 ++++++++ tests/unit/SimpleBlockSequences/Use.py | 29 ++++++++ tests/unit/SimpleBlockSequences/__init__.py | 55 +++++++------- tests/unit/Tokenizer/Tokens.py | 29 ++++++++ tests/unit/Tokenizer/__init__.py | 37 +++++++--- tests/unit/__init__.py | 40 +++++++---- 154 files changed, 4427 insertions(+), 3530 deletions(-) diff --git a/pyVHDLParser/Base.py b/pyVHDLParser/Base.py index f22f3da0c..df837ac67 100644 --- a/pyVHDLParser/Base.py +++ b/pyVHDLParser/Base.py @@ -1,29 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python module: TODO -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pyTooling.Decorators import export diff --git a/pyVHDLParser/Blocks/Assignment/SignalAssignment.py b/pyVHDLParser/Blocks/Assignment/SignalAssignment.py index 6190f4361..1ae45d1f6 100644 --- a/pyVHDLParser/Blocks/Assignment/SignalAssignment.py +++ b/pyVHDLParser/Blocks/Assignment/SignalAssignment.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Assignment/VariableAssignment.py b/pyVHDLParser/Blocks/Assignment/VariableAssignment.py index 6190f4361..1ae45d1f6 100644 --- a/pyVHDLParser/Blocks/Assignment/VariableAssignment.py +++ b/pyVHDLParser/Blocks/Assignment/VariableAssignment.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Assignment/__init__.py b/pyVHDLParser/Blocks/Assignment/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Assignment/__init__.py +++ b/pyVHDLParser/Blocks/Assignment/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py b/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py index 9432442c5..999901bd5 100644 --- a/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py +++ b/pyVHDLParser/Blocks/Attribute/AttributeDeclaration.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken diff --git a/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py b/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py index 2288ab125..30063648e 100644 --- a/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py +++ b/pyVHDLParser/Blocks/Attribute/AttributeSpecification.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken diff --git a/pyVHDLParser/Blocks/Attribute/__init__.py b/pyVHDLParser/Blocks/Attribute/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Attribute/__init__.py +++ b/pyVHDLParser/Blocks/Attribute/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Comment.py b/pyVHDLParser/Blocks/Comment.py index 0dd62efef..cb0075d44 100644 --- a/pyVHDLParser/Blocks/Comment.py +++ b/pyVHDLParser/Blocks/Comment.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, IndentationToken from pyVHDLParser.Token.Keywords import SingleLineCommentKeyword, MultiLineCommentStartKeyword, MultiLineCommentEndKeyword diff --git a/pyVHDLParser/Blocks/Common.py b/pyVHDLParser/Blocks/Common.py index a9aeddfb1..29cdfbcce 100644 --- a/pyVHDLParser/Blocks/Common.py +++ b/pyVHDLParser/Blocks/Common.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, IndentationToken from pyVHDLParser.Blocks import ParserState, SkipableBlock diff --git a/pyVHDLParser/Blocks/ControlStructure/Case.py b/pyVHDLParser/Blocks/ControlStructure/Case.py index 12369f686..b3385813a 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Case.py +++ b/pyVHDLParser/Blocks/ControlStructure/Case.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, CaseKeyword, WhenKeyword, IsKeyword, EndKeyword, MapAssociationKeyword diff --git a/pyVHDLParser/Blocks/ControlStructure/Exit.py b/pyVHDLParser/Blocks/ControlStructure/Exit.py index 22c4196fe..7746dda33 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Exit.py +++ b/pyVHDLParser/Blocks/ControlStructure/Exit.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import WordToken, ExtendedIdentifier, CharacterToken diff --git a/pyVHDLParser/Blocks/ControlStructure/ForLoop.py b/pyVHDLParser/Blocks/ControlStructure/ForLoop.py index 1d5f4ac5a..03a90b79d 100644 --- a/pyVHDLParser/Blocks/ControlStructure/ForLoop.py +++ b/pyVHDLParser/Blocks/ControlStructure/ForLoop.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier, CharacterToken, SpaceToken from pyVHDLParser.Token.Keywords import InKeyword, ForKeyword, LoopKeyword, BoundaryToken, IdentifierToken, WordToken diff --git a/pyVHDLParser/Blocks/ControlStructure/If.py b/pyVHDLParser/Blocks/ControlStructure/If.py index e0c8e1192..7701ff913 100644 --- a/pyVHDLParser/Blocks/ControlStructure/If.py +++ b/pyVHDLParser/Blocks/ControlStructure/If.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IfKeyword, ThenKeyword, ElsIfKeyword, ElseKeyword diff --git a/pyVHDLParser/Blocks/ControlStructure/Next.py b/pyVHDLParser/Blocks/ControlStructure/Next.py index 749834741..b5254d818 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Next.py +++ b/pyVHDLParser/Blocks/ControlStructure/Next.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import WordToken, ExtendedIdentifier, CharacterToken diff --git a/pyVHDLParser/Blocks/ControlStructure/Null.py b/pyVHDLParser/Blocks/ControlStructure/Null.py index 00b103b69..8419ee20c 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Null.py +++ b/pyVHDLParser/Blocks/ControlStructure/Null.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token import CharacterToken diff --git a/pyVHDLParser/Blocks/ControlStructure/Return.py b/pyVHDLParser/Blocks/ControlStructure/Return.py index f0916b34b..9ea1912b4 100644 --- a/pyVHDLParser/Blocks/ControlStructure/Return.py +++ b/pyVHDLParser/Blocks/ControlStructure/Return.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CommentToken, CharacterToken, SpaceToken, LinebreakToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import BoundaryToken, EndToken diff --git a/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py b/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py index 1f61e67e1..6e5318adf 100644 --- a/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py +++ b/pyVHDLParser/Blocks/ControlStructure/WhileLoop.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, LoopKeyword diff --git a/pyVHDLParser/Blocks/ControlStructure/__init__.py b/pyVHDLParser/Blocks/ControlStructure/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/ControlStructure/__init__.py +++ b/pyVHDLParser/Blocks/ControlStructure/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Exception.py b/pyVHDLParser/Blocks/Exception.py index 0c8858ba4..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Exception.py +++ b/pyVHDLParser/Blocks/Exception.py @@ -1,30 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies - - diff --git a/pyVHDLParser/Blocks/Expression.py b/pyVHDLParser/Blocks/Expression.py index b8471fae5..5308b47cc 100644 --- a/pyVHDLParser/Blocks/Expression.py +++ b/pyVHDLParser/Blocks/Expression.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import FusedCharacterToken, CharacterToken, WordToken, LiteralToken, SpaceToken, LinebreakToken from pyVHDLParser.Token import CommentToken, Token, MultiLineCommentToken, IndentationToken, SingleLineCommentToken diff --git a/pyVHDLParser/Blocks/Generate/CaseGenerate.py b/pyVHDLParser/Blocks/Generate/CaseGenerate.py index 9d796aa77..e2495387a 100644 --- a/pyVHDLParser/Blocks/Generate/CaseGenerate.py +++ b/pyVHDLParser/Blocks/Generate/CaseGenerate.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, BeginKeyword from pyVHDLParser.Token.Keywords import IsKeyword, EndKeyword, GenericKeyword, PortKeyword diff --git a/pyVHDLParser/Blocks/Generate/ForGenerate.py b/pyVHDLParser/Blocks/Generate/ForGenerate.py index b2049cba0..9ce536506 100644 --- a/pyVHDLParser/Blocks/Generate/ForGenerate.py +++ b/pyVHDLParser/Blocks/Generate/ForGenerate.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, BeginKeyword, ProcessKeyword, AssertKeyword diff --git a/pyVHDLParser/Blocks/Generate/IfGenerate.py b/pyVHDLParser/Blocks/Generate/IfGenerate.py index 9f28acb24..d7fe979dc 100644 --- a/pyVHDLParser/Blocks/Generate/IfGenerate.py +++ b/pyVHDLParser/Blocks/Generate/IfGenerate.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken diff --git a/pyVHDLParser/Blocks/Generate/__init__.py b/pyVHDLParser/Blocks/Generate/__init__.py index 70be4212a..c3e7aa8de 100644 --- a/pyVHDLParser/Blocks/Generate/__init__.py +++ b/pyVHDLParser/Blocks/Generate/__init__.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import GenerateKeyword from pyVHDLParser.Blocks.Generic import EndBlock diff --git a/pyVHDLParser/Blocks/Generic.py b/pyVHDLParser/Blocks/Generic.py index fb14084dd..fa22682cf 100644 --- a/pyVHDLParser/Blocks/Generic.py +++ b/pyVHDLParser/Blocks/Generic.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, IndentationToken from pyVHDLParser.Token.Keywords import AssertKeyword, EndKeyword, ProcessKeyword, ReportKeyword, IfKeyword, ForKeyword, ReturnKeyword, NextKeyword, NullKeyword diff --git a/pyVHDLParser/Blocks/Generic1.py b/pyVHDLParser/Blocks/Generic1.py index 17477b2ab..d937c923f 100644 --- a/pyVHDLParser/Blocks/Generic1.py +++ b/pyVHDLParser/Blocks/Generic1.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, LinebreakToken, CommentToken, WordToken, MultiLineCommentToken, IndentationToken from pyVHDLParser.Token import SingleLineCommentToken, ExtendedIdentifier diff --git a/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py b/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py index ccc98f433..cfcaca9f5 100644 --- a/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/EntityInstantiation.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py b/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py index 6c420dd4d..cda9df96c 100644 --- a/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/FunctionInstantiation.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py b/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py index 6c420dd4d..cda9df96c 100644 --- a/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/PackageInstantiation.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py b/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py index 6c420dd4d..cda9df96c 100644 --- a/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py +++ b/pyVHDLParser/Blocks/Instantiation/ProcedureInstantiation.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Instantiation/__init__.py b/pyVHDLParser/Blocks/Instantiation/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Instantiation/__init__.py +++ b/pyVHDLParser/Blocks/Instantiation/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/InterfaceObject.py b/pyVHDLParser/Blocks/InterfaceObject.py index 209274814..69691597f 100644 --- a/pyVHDLParser/Blocks/InterfaceObject.py +++ b/pyVHDLParser/Blocks/InterfaceObject.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, WordToken, ExtendedIdentifier, MultiLineCommentToken from pyVHDLParser.Token import IndentationToken, SingleLineCommentToken, CharacterToken, FusedCharacterToken diff --git a/pyVHDLParser/Blocks/List/GenericList.py b/pyVHDLParser/Blocks/List/GenericList.py index 00d99073a..04e3bf2a2 100644 --- a/pyVHDLParser/Blocks/List/GenericList.py +++ b/pyVHDLParser/Blocks/List/GenericList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, ConstantKeyword, TypeKeyword, DelimiterToken diff --git a/pyVHDLParser/Blocks/List/GenericMapList.py b/pyVHDLParser/Blocks/List/GenericMapList.py index 7ce6834ed..765eaed9f 100644 --- a/pyVHDLParser/Blocks/List/GenericMapList.py +++ b/pyVHDLParser/Blocks/List/GenericMapList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken, OpeningRoundBracketToken, ClosingRoundBracketToken diff --git a/pyVHDLParser/Blocks/List/ParameterList.py b/pyVHDLParser/Blocks/List/ParameterList.py index 7c43fbdf0..6fabae8b1 100644 --- a/pyVHDLParser/Blocks/List/ParameterList.py +++ b/pyVHDLParser/Blocks/List/ParameterList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, DelimiterToken, ClosingRoundBracketToken, IdentifierToken diff --git a/pyVHDLParser/Blocks/List/PortList.py b/pyVHDLParser/Blocks/List/PortList.py index a42064f7f..d476d8c3e 100644 --- a/pyVHDLParser/Blocks/List/PortList.py +++ b/pyVHDLParser/Blocks/List/PortList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, CommentToken, MultiLineCommentToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, SignalKeyword, DelimiterToken diff --git a/pyVHDLParser/Blocks/List/PortMapList.py b/pyVHDLParser/Blocks/List/PortMapList.py index 38300e9ee..0d6338484 100644 --- a/pyVHDLParser/Blocks/List/PortMapList.py +++ b/pyVHDLParser/Blocks/List/PortMapList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken, OpeningRoundBracketToken, ClosingRoundBracketToken diff --git a/pyVHDLParser/Blocks/List/SensitivityList.py b/pyVHDLParser/Blocks/List/SensitivityList.py index 84533cdaa..34a5774a1 100644 --- a/pyVHDLParser/Blocks/List/SensitivityList.py +++ b/pyVHDLParser/Blocks/List/SensitivityList.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, ExtendedIdentifier from pyVHDLParser.Token import CommentToken, MultiLineCommentToken, SingleLineCommentToken diff --git a/pyVHDLParser/Blocks/List/__init__.py b/pyVHDLParser/Blocks/List/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/List/__init__.py +++ b/pyVHDLParser/Blocks/List/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Object/Constant.py b/pyVHDLParser/Blocks/Object/Constant.py index 9937bf4dd..d2acbfa6d 100644 --- a/pyVHDLParser/Blocks/Object/Constant.py +++ b/pyVHDLParser/Blocks/Object/Constant.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken diff --git a/pyVHDLParser/Blocks/Object/File.py b/pyVHDLParser/Blocks/Object/File.py index 667357620..3c5929c59 100644 --- a/pyVHDLParser/Blocks/Object/File.py +++ b/pyVHDLParser/Blocks/Object/File.py @@ -1,28 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies diff --git a/pyVHDLParser/Blocks/Object/SharedVariable.py b/pyVHDLParser/Blocks/Object/SharedVariable.py index bda7dd423..ed309d8bf 100644 --- a/pyVHDLParser/Blocks/Object/SharedVariable.py +++ b/pyVHDLParser/Blocks/Object/SharedVariable.py @@ -1,32 +1,34 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export + from pyVHDLParser.Blocks import ParserState, CommentBlock, BlockParserException from pyVHDLParser.Blocks.Common import LinebreakBlock, WhitespaceBlock from pyVHDLParser.Blocks.Object import ObjectDeclarationEndMarkerBlock, ObjectDeclarationBlock diff --git a/pyVHDLParser/Blocks/Object/Signal.py b/pyVHDLParser/Blocks/Object/Signal.py index cf010fd78..80b563709 100644 --- a/pyVHDLParser/Blocks/Object/Signal.py +++ b/pyVHDLParser/Blocks/Object/Signal.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken diff --git a/pyVHDLParser/Blocks/Object/Variable.py b/pyVHDLParser/Blocks/Object/Variable.py index ef39b249f..0616ccf36 100644 --- a/pyVHDLParser/Blocks/Object/Variable.py +++ b/pyVHDLParser/Blocks/Object/Variable.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken from pyVHDLParser.Token.Keywords import BoundaryToken diff --git a/pyVHDLParser/Blocks/Object/__init__.py b/pyVHDLParser/Blocks/Object/__init__.py index cf35b8173..2426e9f67 100644 --- a/pyVHDLParser/Blocks/Object/__init__.py +++ b/pyVHDLParser/Blocks/Object/__init__.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import WordToken, ExtendedIdentifier, LinebreakToken, MultiLineCommentToken from pyVHDLParser.Token import CommentToken, SpaceToken, CharacterToken, FusedCharacterToken diff --git a/pyVHDLParser/Blocks/Reference/Context.py b/pyVHDLParser/Blocks/Reference/Context.py index 863cec463..1145522bc 100644 --- a/pyVHDLParser/Blocks/Reference/Context.py +++ b/pyVHDLParser/Blocks/Reference/Context.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CommentToken, SpaceToken, LinebreakToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, IsKeyword, UseKeyword, EndKeyword, ContextKeyword, LibraryKeyword diff --git a/pyVHDLParser/Blocks/Reference/Library.py b/pyVHDLParser/Blocks/Reference/Library.py index a1203d9cf..272813e96 100644 --- a/pyVHDLParser/Blocks/Reference/Library.py +++ b/pyVHDLParser/Blocks/Reference/Library.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, CommentToken, IndentationToken, SingleLineCommentToken, MultiLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken, DelimiterToken diff --git a/pyVHDLParser/Blocks/Reference/Use.py b/pyVHDLParser/Blocks/Reference/Use.py index fb4b299f3..c3faac278 100644 --- a/pyVHDLParser/Blocks/Reference/Use.py +++ b/pyVHDLParser/Blocks/Reference/Use.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, DelimiterToken, EndToken, AllKeyword diff --git a/pyVHDLParser/Blocks/Reference/__init__.py b/pyVHDLParser/Blocks/Reference/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Reference/__init__.py +++ b/pyVHDLParser/Blocks/Reference/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Reporting/Assert.py b/pyVHDLParser/Blocks/Reporting/Assert.py index f5926def8..fe31725ae 100644 --- a/pyVHDLParser/Blocks/Reporting/Assert.py +++ b/pyVHDLParser/Blocks/Reporting/Assert.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, WordToken, IndentationToken, CharacterToken from pyVHDLParser.Token import CommentToken, SingleLineCommentToken, MultiLineCommentToken diff --git a/pyVHDLParser/Blocks/Reporting/Report.py b/pyVHDLParser/Blocks/Reporting/Report.py index ea5186ef9..daf1589ea 100644 --- a/pyVHDLParser/Blocks/Reporting/Report.py +++ b/pyVHDLParser/Blocks/Reporting/Report.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, WordToken, IndentationToken, CharacterToken from pyVHDLParser.Token import CommentToken, SingleLineCommentToken, MultiLineCommentToken diff --git a/pyVHDLParser/Blocks/Reporting/__init__.py b/pyVHDLParser/Blocks/Reporting/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Reporting/__init__.py +++ b/pyVHDLParser/Blocks/Reporting/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Sequential/Function.py b/pyVHDLParser/Blocks/Sequential/Function.py index e35976988..d2c4b838e 100644 --- a/pyVHDLParser/Blocks/Sequential/Function.py +++ b/pyVHDLParser/Blocks/Sequential/Function.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, CharacterToken, IndentationToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, PureKeyword, ImpureKeyword diff --git a/pyVHDLParser/Blocks/Sequential/Package.py b/pyVHDLParser/Blocks/Sequential/Package.py index 0fc5de32c..0b909b264 100644 --- a/pyVHDLParser/Blocks/Sequential/Package.py +++ b/pyVHDLParser/Blocks/Sequential/Package.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import PackageKeyword, IsKeyword, EndKeyword, GenericKeyword, BodyKeyword, UseKeyword, VariableKeyword, SignalKeyword diff --git a/pyVHDLParser/Blocks/Sequential/PackageBody.py b/pyVHDLParser/Blocks/Sequential/PackageBody.py index 834a5016c..bdbbd8b0e 100644 --- a/pyVHDLParser/Blocks/Sequential/PackageBody.py +++ b/pyVHDLParser/Blocks/Sequential/PackageBody.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken from pyVHDLParser.Token.Keywords import PackageKeyword, IsKeyword, EndKeyword, BodyKeyword, FunctionKeyword, SignalKeyword diff --git a/pyVHDLParser/Blocks/Sequential/Procedure.py b/pyVHDLParser/Blocks/Sequential/Procedure.py index a5041dc1c..c736b2325 100644 --- a/pyVHDLParser/Blocks/Sequential/Procedure.py +++ b/pyVHDLParser/Blocks/Sequential/Procedure.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import SpaceToken, LinebreakToken, CommentToken, CharacterToken, IndentationToken, MultiLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IdentifierToken, GenericKeyword, ParameterKeyword, ProcedureKeyword, EndKeyword, ImpureKeyword, PureKeyword diff --git a/pyVHDLParser/Blocks/Sequential/Process.py b/pyVHDLParser/Blocks/Sequential/Process.py index 1594e9061..3e7249a11 100644 --- a/pyVHDLParser/Blocks/Sequential/Process.py +++ b/pyVHDLParser/Blocks/Sequential/Process.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, LinebreakToken, CommentToken, IndentationToken, MultiLineCommentToken, SingleLineCommentToken from pyVHDLParser.Token.Keywords import WordToken, BoundaryToken, IsKeyword, UseKeyword, ConstantKeyword, ImpureKeyword, PureKeyword diff --git a/pyVHDLParser/Blocks/Sequential/__init__.py b/pyVHDLParser/Blocks/Sequential/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Sequential/__init__.py +++ b/pyVHDLParser/Blocks/Sequential/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Structural/Architecture.py b/pyVHDLParser/Blocks/Structural/Architecture.py index 65590ae28..05a0fc4f3 100644 --- a/pyVHDLParser/Blocks/Structural/Architecture.py +++ b/pyVHDLParser/Blocks/Structural/Architecture.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ArchitectureKeyword, IsKeyword, OfKeyword, BoundaryToken, IdentifierToken diff --git a/pyVHDLParser/Blocks/Structural/Block.py b/pyVHDLParser/Blocks/Structural/Block.py index 01bfef4ae..3e8e24016 100644 --- a/pyVHDLParser/Blocks/Structural/Block.py +++ b/pyVHDLParser/Blocks/Structural/Block.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, SpaceToken, WordToken, LinebreakToken, IndentationToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, EndToken diff --git a/pyVHDLParser/Blocks/Structural/Component.py b/pyVHDLParser/Blocks/Structural/Component.py index 5dd2a3e5d..7876d4a20 100644 --- a/pyVHDLParser/Blocks/Structural/Component.py +++ b/pyVHDLParser/Blocks/Structural/Component.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ComponentKeyword, IsKeyword, EndKeyword, GenericKeyword, PortKeyword, UseKeyword, BeginKeyword diff --git a/pyVHDLParser/Blocks/Structural/Configuration.py b/pyVHDLParser/Blocks/Structural/Configuration.py index 5f3f3f1fd..350682310 100644 --- a/pyVHDLParser/Blocks/Structural/Configuration.py +++ b/pyVHDLParser/Blocks/Structural/Configuration.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import ConfigurationKeyword, IsKeyword, EndKeyword, GenericKeyword, PortKeyword, UseKeyword, BeginKeyword diff --git a/pyVHDLParser/Blocks/Structural/Entity.py b/pyVHDLParser/Blocks/Structural/Entity.py index 198dbe054..b679ec1e1 100644 --- a/pyVHDLParser/Blocks/Structural/Entity.py +++ b/pyVHDLParser/Blocks/Structural/Entity.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import LinebreakToken, WordToken, SpaceToken, CommentToken, MultiLineCommentToken, IndentationToken, SingleLineCommentToken, ExtendedIdentifier from pyVHDLParser.Token.Keywords import EntityKeyword, IsKeyword, GenericKeyword, PortKeyword diff --git a/pyVHDLParser/Blocks/Structural/__init__.py b/pyVHDLParser/Blocks/Structural/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Structural/__init__.py +++ b/pyVHDLParser/Blocks/Structural/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/Type/SubType.py b/pyVHDLParser/Blocks/Type/SubType.py index eee77bef1..49b42863a 100644 --- a/pyVHDLParser/Blocks/Type/SubType.py +++ b/pyVHDLParser/Blocks/Type/SubType.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken diff --git a/pyVHDLParser/Blocks/Type/Type.py b/pyVHDLParser/Blocks/Type/Type.py index e463504cc..13f5b4698 100644 --- a/pyVHDLParser/Blocks/Type/Type.py +++ b/pyVHDLParser/Blocks/Type/Type.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token import CharacterToken, LinebreakToken, SpaceToken, WordToken from pyVHDLParser.Token.Keywords import BoundaryToken, IdentifierToken, VariableAssignmentKeyword, EndToken diff --git a/pyVHDLParser/Blocks/Type/__init__.py b/pyVHDLParser/Blocks/Type/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Blocks/Type/__init__.py +++ b/pyVHDLParser/Blocks/Type/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Blocks/__init__.py b/pyVHDLParser/Blocks/__init__.py index 71a88c02d..5591f4ab7 100644 --- a/pyVHDLParser/Blocks/__init__.py +++ b/pyVHDLParser/Blocks/__init__.py @@ -1,29 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from types import FunctionType from typing import List, Callable, Iterator, Generator diff --git a/pyVHDLParser/CLI/Block.py b/pyVHDLParser/CLI/Block.py index ac40cf750..33366321c 100644 --- a/pyVHDLParser/CLI/Block.py +++ b/pyVHDLParser/CLI/Block.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pathlib import Path diff --git a/pyVHDLParser/CLI/CodeDOM.py b/pyVHDLParser/CLI/CodeDOM.py index 4ba863ae2..c0282e5b5 100644 --- a/pyVHDLParser/CLI/CodeDOM.py +++ b/pyVHDLParser/CLI/CodeDOM.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pathlib import Path diff --git a/pyVHDLParser/CLI/Group.py b/pyVHDLParser/CLI/Group.py index 0112c649e..17d089117 100644 --- a/pyVHDLParser/CLI/Group.py +++ b/pyVHDLParser/CLI/Group.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pathlib import Path diff --git a/pyVHDLParser/CLI/Token.py b/pyVHDLParser/CLI/Token.py index 0723eb253..c9f5d10d1 100644 --- a/pyVHDLParser/CLI/Token.py +++ b/pyVHDLParser/CLI/Token.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pathlib import Path from textwrap import dedent diff --git a/pyVHDLParser/CLI/VHDLParser.py b/pyVHDLParser/CLI/VHDLParser.py index 1e5fb7601..8ed834882 100644 --- a/pyVHDLParser/CLI/VHDLParser.py +++ b/pyVHDLParser/CLI/VHDLParser.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from argparse import RawDescriptionHelpFormatter from platform import system as platform_system diff --git a/pyVHDLParser/CLI/__init__.py b/pyVHDLParser/CLI/__init__.py index 723adb6e4..f0e14f9b0 100644 --- a/pyVHDLParser/CLI/__init__.py +++ b/pyVHDLParser/CLI/__init__.py @@ -1,24 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python frontend: A streaming VHDL parser -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from typing import Protocol, Callable, Dict diff --git a/pyVHDLParser/Common/Common.py b/pyVHDLParser/Common/Common.py index 4f0c70e2e..ca9074cd1 100644 --- a/pyVHDLParser/Common/Common.py +++ b/pyVHDLParser/Common/Common.py @@ -1,34 +1,35 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from enum import Enum -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/Common/__init__.py b/pyVHDLParser/Common/__init__.py index 281602c48..3c6feaacd 100644 --- a/pyVHDLParser/Common/__init__.py +++ b/pyVHDLParser/Common/__init__.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyVHDLParser.Common.Common import VHDLVersion diff --git a/pyVHDLParser/Decorators.py b/pyVHDLParser/Decorators.py index b3ccc746b..3c5929c59 100644 --- a/pyVHDLParser/Decorators.py +++ b/pyVHDLParser/Decorators.py @@ -1,38 +1,29 @@ -# ============================================================================== -# __ ___ _ ____ _ ____ -# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ -# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| -# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | -# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| -# |_| |___/ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python package: A streaming-based VHDL parser. -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -import sys - -__all__ = [] -__api__ = __all__ diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py index ff6135bd8..884df37c9 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Architecture.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pydecor import export from typing import List diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Context.py b/pyVHDLParser/DocumentModel/DesignUnit/Context.py index 97453a524..e4fbb204d 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Context.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Context.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pydecor import export from pyVHDLModel.SyntaxModel import Context as ContextVHDLModel diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py index bd4e55df3..2dd4f8fc9 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Entity.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Entity.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pydecor import export from typing import List diff --git a/pyVHDLParser/DocumentModel/DesignUnit/Package.py b/pyVHDLParser/DocumentModel/DesignUnit/Package.py index 28fe7e7a3..4e0c1af0e 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/Package.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/Package.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pydecor import export from typing import List diff --git a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py index 81d872e53..aa6e6f91b 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/PackageBody.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pydecor import export from typing import List diff --git a/pyVHDLParser/DocumentModel/DesignUnit/__init__.py b/pyVHDLParser/DocumentModel/DesignUnit/__init__.py index e69de29bb..3c5929c59 100644 --- a/pyVHDLParser/DocumentModel/DesignUnit/__init__.py +++ b/pyVHDLParser/DocumentModel/DesignUnit/__init__.py @@ -0,0 +1,29 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# diff --git a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py index 3f85b664a..7a79f0e54 100644 --- a/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py +++ b/pyVHDLParser/DocumentModel/ObjectDeclaration/__init__.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyTooling.TerminalUI import LineTerminal from pyVHDLModel.SyntaxModel import Constant as ConstantBase diff --git a/pyVHDLParser/DocumentModel/Reference/__init__.py b/pyVHDLParser/DocumentModel/Reference/__init__.py index 7828b6069..b30966d43 100644 --- a/pyVHDLParser/DocumentModel/Reference/__init__.py +++ b/pyVHDLParser/DocumentModel/Reference/__init__.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyVHDLModel.SyntaxModel import LibraryClause as VHDLModel_LibraryClause, UseClause as VHDLModel_UseClause from pyVHDLParser.Token.Keywords import IdentifierToken, AllKeyword diff --git a/pyVHDLParser/DocumentModel/Sequential/Function.py b/pyVHDLParser/DocumentModel/Sequential/Function.py index 7029d1be1..e83282047 100644 --- a/pyVHDLParser/DocumentModel/Sequential/Function.py +++ b/pyVHDLParser/DocumentModel/Sequential/Function.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from typing import List from pyTooling.TerminalUI import LineTerminal diff --git a/pyVHDLParser/DocumentModel/Sequential/__init__.py b/pyVHDLParser/DocumentModel/Sequential/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/DocumentModel/Sequential/__init__.py +++ b/pyVHDLParser/DocumentModel/Sequential/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/DocumentModel/__init__.py b/pyVHDLParser/DocumentModel/__init__.py index 520f00cc5..6cef6014b 100644 --- a/pyVHDLParser/DocumentModel/__init__.py +++ b/pyVHDLParser/DocumentModel/__init__.py @@ -1,29 +1,31 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # from pathlib import Path from typing import List, Union @@ -34,7 +36,7 @@ from pyVHDLParser.Base import ParserException from pyVHDLParser.Token.Parser import Tokenizer from pyVHDLParser.Blocks import TokenToBlockParser, BlockParserException -from pyVHDLParser.Groups import StartOfDocumentGroup, EndOfDocumentGroup, BlockToGroupParser, Group, GroupParserException +from pyVHDLParser.Groups import StartOfDocumentGroup, EndOfDocumentGroup, BlockToGroupParser, Group, GroupParserException from pyVHDLParser.Groups.Comment import WhitespaceGroup from pyVHDLParser.Groups.DesignUnit import ContextGroup, EntityGroup, ArchitectureGroup, PackageBodyGroup, PackageGroup from pyVHDLParser.Groups.Reference import LibraryGroup, UseGroup diff --git a/pyVHDLParser/Filters/Comment.py b/pyVHDLParser/Filters/Comment.py index 245a14877..d1ffc116c 100644 --- a/pyVHDLParser/Filters/Comment.py +++ b/pyVHDLParser/Filters/Comment.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from collections import Generator from typing import Any diff --git a/pyVHDLParser/Filters/__init__.py b/pyVHDLParser/Filters/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Filters/__init__.py +++ b/pyVHDLParser/Filters/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Functions.py b/pyVHDLParser/Functions.py index ab7fab860..b91ec8b95 100644 --- a/pyVHDLParser/Functions.py +++ b/pyVHDLParser/Functions.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: Auxillary functions to exit a program and report an error message. -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# - from functools import reduce from operator import or_ diff --git a/pyVHDLParser/Graph/CompileOrder.py b/pyVHDLParser/Graph/CompileOrder.py index dc0435775..615a2e17f 100644 --- a/pyVHDLParser/Graph/CompileOrder.py +++ b/pyVHDLParser/Graph/CompileOrder.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Graph.Graph import Graph as BaseGraph from pyVHDLParser.Graph.Graph import Node as BaseNode diff --git a/pyVHDLParser/Graph/Graph.py b/pyVHDLParser/Graph/Graph.py index d979a7047..bb1ea0414 100644 --- a/pyVHDLParser/Graph/Graph.py +++ b/pyVHDLParser/Graph/Graph.py @@ -1,34 +1,35 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from enum import Enum -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/Graph/__init__.py b/pyVHDLParser/Graph/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/Graph/__init__.py +++ b/pyVHDLParser/Graph/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Groups/Comment.py b/pyVHDLParser/Groups/Comment.py index 1c53ce89f..beffe9523 100644 --- a/pyVHDLParser/Groups/Comment.py +++ b/pyVHDLParser/Groups/Comment.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock from pyVHDLParser.Blocks.Common import WhitespaceBlock, LinebreakBlock, IndentationBlock diff --git a/pyVHDLParser/Groups/Concurrent.py b/pyVHDLParser/Groups/Concurrent.py index 175ddbea0..f029bc993 100644 --- a/pyVHDLParser/Groups/Concurrent.py +++ b/pyVHDLParser/Groups/Concurrent.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Reporting.Assert import AssertBlock from pyVHDLParser.Blocks.Reporting.Report import ReportBlock diff --git a/pyVHDLParser/Groups/DesignUnit.py b/pyVHDLParser/Groups/DesignUnit.py index 0f826cb1a..97e61ba97 100644 --- a/pyVHDLParser/Groups/DesignUnit.py +++ b/pyVHDLParser/Groups/DesignUnit.py @@ -1,35 +1,36 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from collections import ChainMap from itertools import chain -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock diff --git a/pyVHDLParser/Groups/List.py b/pyVHDLParser/Groups/List.py index 8e996eb6a..426cdcd55 100644 --- a/pyVHDLParser/Groups/List.py +++ b/pyVHDLParser/Groups/List.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock diff --git a/pyVHDLParser/Groups/Object.py b/pyVHDLParser/Groups/Object.py index d3efa2d83..d09970829 100644 --- a/pyVHDLParser/Groups/Object.py +++ b/pyVHDLParser/Groups/Object.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Object.Variable import VariableDeclarationBlock from pyVHDLParser.Blocks.Object.Signal import SignalDeclarationBlock diff --git a/pyVHDLParser/Groups/Reference.py b/pyVHDLParser/Groups/Reference.py index 7fea56a3c..b16df67b9 100644 --- a/pyVHDLParser/Groups/Reference.py +++ b/pyVHDLParser/Groups/Reference.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks.Reference import Library, Use from pyVHDLParser.Groups import ParserState, GroupParserException, Group diff --git a/pyVHDLParser/Groups/Sequential/Function.py b/pyVHDLParser/Groups/Sequential/Function.py index 30065bd40..e204bc269 100644 --- a/pyVHDLParser/Groups/Sequential/Function.py +++ b/pyVHDLParser/Groups/Sequential/Function.py @@ -1,35 +1,36 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from collections import ChainMap from itertools import chain -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Token.Keywords import EndToken from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock diff --git a/pyVHDLParser/Groups/Sequential/Procedure.py b/pyVHDLParser/Groups/Sequential/Procedure.py index fe6eb5157..5b2e5b4af 100644 --- a/pyVHDLParser/Groups/Sequential/Procedure.py +++ b/pyVHDLParser/Groups/Sequential/Procedure.py @@ -1,35 +1,36 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python procedures: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from collections import ChainMap from itertools import chain -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock diff --git a/pyVHDLParser/Groups/Sequential/Process.py b/pyVHDLParser/Groups/Sequential/Process.py index ee5c22715..20cacae9c 100644 --- a/pyVHDLParser/Groups/Sequential/Process.py +++ b/pyVHDLParser/Groups/Sequential/Process.py @@ -1,35 +1,36 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from collections import ChainMap from itertools import chain -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.Blocks import CommentBlock, EndOfDocumentBlock from pyVHDLParser.Blocks.Common import LinebreakBlock, IndentationBlock diff --git a/pyVHDLParser/Groups/Sequential/__init__.py b/pyVHDLParser/Groups/Sequential/__init__.py index 667357620..3c5929c59 100644 --- a/pyVHDLParser/Groups/Sequential/__init__.py +++ b/pyVHDLParser/Groups/Sequential/__init__.py @@ -1,28 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies diff --git a/pyVHDLParser/Groups/__init__.py b/pyVHDLParser/Groups/__init__.py index 524a7e563..cbd6a04c2 100644 --- a/pyVHDLParser/Groups/__init__.py +++ b/pyVHDLParser/Groups/__init__.py @@ -1,37 +1,38 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from types import FunctionType -from typing import Iterator, Callable, List, Generator, Any, Dict +from typing import Iterator, Callable, List, Generator, Any, Dict -from pyTooling.TerminalUI import LineTerminal +from pyTooling.TerminalUI import LineTerminal -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser import StartOfDocument, EndOfDocument, StartOfSnippet, EndOfSnippet from pyVHDLParser.Base import ParserException diff --git a/pyVHDLParser/LanguageModel/__init__.py b/pyVHDLParser/LanguageModel/__init__.py index cb8e31089..3c5929c59 100644 --- a/pyVHDLParser/LanguageModel/__init__.py +++ b/pyVHDLParser/LanguageModel/__init__.py @@ -1,28 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python package: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies diff --git a/pyVHDLParser/NetlistModel/NetlistModel.py b/pyVHDLParser/NetlistModel/NetlistModel.py index c4bf62e9a..462ec935e 100644 --- a/pyVHDLParser/NetlistModel/NetlistModel.py +++ b/pyVHDLParser/NetlistModel/NetlistModel.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/NetlistModel/__init__.py b/pyVHDLParser/NetlistModel/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/NetlistModel/__init__.py +++ b/pyVHDLParser/NetlistModel/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/SimulationModel/EventSystem.py b/pyVHDLParser/SimulationModel/EventSystem.py index a5f9dd183..8932814a9 100644 --- a/pyVHDLParser/SimulationModel/EventSystem.py +++ b/pyVHDLParser/SimulationModel/EventSystem.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/SimulationModel/SimulationModel.py b/pyVHDLParser/SimulationModel/SimulationModel.py index fb6a1f60d..4274115bb 100644 --- a/pyVHDLParser/SimulationModel/SimulationModel.py +++ b/pyVHDLParser/SimulationModel/SimulationModel.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser.SimulationModel.EventSystem import ProjectedWaveform, Waveform, Scheduler, Event diff --git a/pyVHDLParser/SimulationModel/__init__.py b/pyVHDLParser/SimulationModel/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/SimulationModel/__init__.py +++ b/pyVHDLParser/SimulationModel/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/StyleChecks/__init__.py b/pyVHDLParser/StyleChecks/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/StyleChecks/__init__.py +++ b/pyVHDLParser/StyleChecks/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/Token/Keywords.py b/pyVHDLParser/Token/Keywords.py index 65800d953..d0f54b159 100644 --- a/pyVHDLParser/Token/Keywords.py +++ b/pyVHDLParser/Token/Keywords.py @@ -1,34 +1,35 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export -from pyVHDLParser.Token import Token, WordToken, VHDLToken, CharacterToken +from pyVHDLParser.Token import Token, WordToken, VHDLToken, CharacterToken from pyVHDLParser.Token.Parser import TokenizerException diff --git a/pyVHDLParser/Token/Parser.py b/pyVHDLParser/Token/Parser.py index 994624c74..e1e8aedf2 100644 --- a/pyVHDLParser/Token/Parser.py +++ b/pyVHDLParser/Token/Parser.py @@ -1,35 +1,36 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python module: TODO -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from enum import Enum from typing import Iterator -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser import SourceCodePosition from pyVHDLParser.Base import ParserException diff --git a/pyVHDLParser/Token/__init__.py b/pyVHDLParser/Token/__init__.py index 60f7bb794..9368a9f0a 100644 --- a/pyVHDLParser/Token/__init__.py +++ b/pyVHDLParser/Token/__init__.py @@ -1,34 +1,35 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from typing import Iterator +from typing import Iterator -from pyTooling.Decorators import export +from pyTooling.Decorators import export from pyVHDLParser import SourceCodePosition, StartOfDocument, EndOfDocument, StartOfSnippet, EndOfSnippet from pyVHDLParser.Base import ParserException diff --git a/pyVHDLParser/TypeSystem/Package.py b/pyVHDLParser/TypeSystem/Package.py index ddc6c19e0..ef7c52aaf 100644 --- a/pyVHDLParser/TypeSystem/Package.py +++ b/pyVHDLParser/TypeSystem/Package.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/TypeSystem/TypeSystem.py b/pyVHDLParser/TypeSystem/TypeSystem.py index d23e8e24a..100678e6a 100644 --- a/pyVHDLParser/TypeSystem/TypeSystem.py +++ b/pyVHDLParser/TypeSystem/TypeSystem.py @@ -1,34 +1,35 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from enum import Enum, unique -from pyTooling.Decorators import export +from pyTooling.Decorators import export @export diff --git a/pyVHDLParser/TypeSystem/__init__.py b/pyVHDLParser/TypeSystem/__init__.py index 07a1505d5..6ff48fb1a 100644 --- a/pyVHDLParser/TypeSystem/__init__.py +++ b/pyVHDLParser/TypeSystem/__init__.py @@ -1,27 +1,29 @@ -# ============================================================================== -# Authors: Patrick Lehmann -# -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # diff --git a/pyVHDLParser/TypeSystem/std.py b/pyVHDLParser/TypeSystem/std.py index 43f9dff5e..853ddcc95 100644 --- a/pyVHDLParser/TypeSystem/std.py +++ b/pyVHDLParser/TypeSystem/std.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyVHDLParser.Common import VHDLVersion, vhdlVersion from pyVHDLParser.TypeSystem.Package import PackageDeclation, PackageBody, Package from pyVHDLParser.TypeSystem.TypeSystem import EnumerationType, ArrayType, IntegerType, RealType, Direction, SubType, Range, IntegerSubType diff --git a/pyVHDLParser/TypeSystem/std_logic_1164.py b/pyVHDLParser/TypeSystem/std_logic_1164.py index e16855499..6959c0529 100644 --- a/pyVHDLParser/TypeSystem/std_logic_1164.py +++ b/pyVHDLParser/TypeSystem/std_logic_1164.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyVHDLParser.Common import VHDLVersion, vhdlVersion from pyVHDLParser.TypeSystem.Package import Parameter, FunctionDeclaration, Function, PackageDeclation, PackageBody, Package from pyVHDLParser.TypeSystem.TypeSystem import EnumerationType, ArrayType, Range, SubType, EnumerationSubType diff --git a/pyVHDLParser/__init__.py b/pyVHDLParser/__init__.py index 36c290056..c8af26510 100644 --- a/pyVHDLParser/__init__.py +++ b/pyVHDLParser/__init__.py @@ -1,38 +1,42 @@ -# ============================================================================== -# __ ___ _ ____ _ ____ -# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ -# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| -# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | -# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| -# |_| |___/ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python package: A streaming-based VHDL parser. -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies +"""\ +A streaming-based VHDL parser. +""" +__author__ = "Patrick Lehmann" +__email__ = "Paebbels@gmail.com" +__copyright__ = "2016-2021, Patrick Lehmann" +__license__ = "Apache License, Version 2.0" +__version__ = "0.1.0" +__keywords__ = ["parser", "vhdl", "code generator", "hdl"] + from pyTooling.Decorators import export diff --git a/tests/Interfaces.py b/tests/Interfaces.py index 5010314e3..fa1f8387d 100644 --- a/tests/Interfaces.py +++ b/tests/Interfaces.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from typing import Any diff --git a/tests/IssueTester.py b/tests/IssueTester.py index d95b8de48..781a354e5 100644 --- a/tests/IssueTester.py +++ b/tests/IssueTester.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from tests.Linking import TokenizerChecks diff --git a/tests/Linking.py b/tests/Linking.py index ca4d186c4..fc781d9fe 100644 --- a/tests/Linking.py +++ b/tests/Linking.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from pyVHDLParser.Token.Parser import Tokenizer, TokenizerException from pyVHDLParser.Token import StartOfDocumentToken, EndOfDocumentToken, Token diff --git a/tests/__init__.py b/tests/__init__.py index e69de29bb..3c5929c59 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,29 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# diff --git a/tests/issue/15/Issue_15.py b/tests/issue/15/Issue_15.py index 9fbc31608..6065e79d4 100644 --- a/tests/issue/15/Issue_15.py +++ b/tests/issue/15/Issue_15.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pathlib import Path +from pathlib import Path from unittest import TestCase from tests.IssueTester import SingleFileIssue diff --git a/tests/issue/15/__init__.py b/tests/issue/15/__init__.py index f4b6aca09..3c5929c59 100644 --- a/tests/issue/15/__init__.py +++ b/tests/issue/15/__init__.py @@ -1,10 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit.Tokenizer import Tokens -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Tokens)) -# -# return suite diff --git a/tests/issue/18/Issue_18.py b/tests/issue/18/Issue_18.py index 4534f1c49..3f8e7382c 100644 --- a/tests/issue/18/Issue_18.py +++ b/tests/issue/18/Issue_18.py @@ -1,32 +1,33 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies -from pathlib import Path +from pathlib import Path from unittest import TestCase from pytest import mark diff --git a/tests/issue/18/__init__.py b/tests/issue/18/__init__.py index f4b6aca09..3c5929c59 100644 --- a/tests/issue/18/__init__.py +++ b/tests/issue/18/__init__.py @@ -1,10 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit.Tokenizer import Tokens -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Tokens)) -# -# return suite diff --git a/tests/unit/Common.py b/tests/unit/Common.py index bd0559af9..9ecc978cb 100644 --- a/tests/unit/Common.py +++ b/tests/unit/Common.py @@ -1,31 +1,32 @@ -# ============================================================================== -# Authors: Patrick Lehmann +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# Python functions: A streaming VHDL parser -# -# Description: -# ------------------------------------ -# TODO: -# -# License: -# ============================================================================== -# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany -# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -# -# load dependencies from dataclasses import dataclass from typing import List, Tuple, Any diff --git a/tests/unit/DocumentModel/Architecture.py b/tests/unit/DocumentModel/Architecture.py index 3e7751ba7..af7a27b71 100644 --- a/tests/unit/DocumentModel/Architecture.py +++ b/tests/unit/DocumentModel/Architecture.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase, skip diff --git a/tests/unit/DocumentModel/Context.py b/tests/unit/DocumentModel/Context.py index 8a74e201c..941c90c16 100644 --- a/tests/unit/DocumentModel/Context.py +++ b/tests/unit/DocumentModel/Context.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase, skip diff --git a/tests/unit/DocumentModel/Entity.py b/tests/unit/DocumentModel/Entity.py index ed29d95be..6bddf7fcc 100644 --- a/tests/unit/DocumentModel/Entity.py +++ b/tests/unit/DocumentModel/Entity.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase, skip diff --git a/tests/unit/DocumentModel/Package.py b/tests/unit/DocumentModel/Package.py index e68693b33..fa6c58014 100644 --- a/tests/unit/DocumentModel/Package.py +++ b/tests/unit/DocumentModel/Package.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase, skip diff --git a/tests/unit/DocumentModel/PackageBody.py b/tests/unit/DocumentModel/PackageBody.py index ee2df651a..388e46455 100644 --- a/tests/unit/DocumentModel/PackageBody.py +++ b/tests/unit/DocumentModel/PackageBody.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase, skip diff --git a/tests/unit/DocumentModel/__init__.py b/tests/unit/DocumentModel/__init__.py index 7e3e90939..3c5929c59 100644 --- a/tests/unit/DocumentModel/__init__.py +++ b/tests/unit/DocumentModel/__init__.py @@ -1,18 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit.DocumentModel import Architecture -# from tests.unit.DocumentModel import Context -# from tests.unit.DocumentModel import Entity -# from tests.unit.DocumentModel import Package, PackageBody -# -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Architecture)) -# suite.addTests(loader.loadTestsFromModule(Context)) -# suite.addTests(loader.loadTestsFromModule(Entity)) -# suite.addTests(loader.loadTestsFromModule(Package)) -# suite.addTests(loader.loadTestsFromModule(PackageBody)) -# -# return suite diff --git a/tests/unit/SimpleBlockSequences/Architecture.py b/tests/unit/SimpleBlockSequences/Architecture.py index 492c27ac7..0fdc24997 100644 --- a/tests/unit/SimpleBlockSequences/Architecture.py +++ b/tests/unit/SimpleBlockSequences/Architecture.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import StartOfDocumentToken, WordToken, SpaceToken, CharacterToken, EndOfDocumentToken, LinebreakToken, IndentationToken, MultiLineCommentToken, SingleLineCommentToken diff --git a/tests/unit/SimpleBlockSequences/Assert.py b/tests/unit/SimpleBlockSequences/Assert.py index e0b8a0bb3..182edc657 100644 --- a/tests/unit/SimpleBlockSequences/Assert.py +++ b/tests/unit/SimpleBlockSequences/Assert.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import StartOfDocumentToken, WordToken, SpaceToken, CharacterToken, EndOfDocumentToken, StringLiteralToken diff --git a/tests/unit/SimpleBlockSequences/Constant.py b/tests/unit/SimpleBlockSequences/Constant.py index 2cbcda3e0..e6435c5bf 100644 --- a/tests/unit/SimpleBlockSequences/Constant.py +++ b/tests/unit/SimpleBlockSequences/Constant.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Blocks import StartOfDocumentBlock, EndOfDocumentBlock diff --git a/tests/unit/SimpleBlockSequences/Context.py b/tests/unit/SimpleBlockSequences/Context.py index e6668dfa0..3c3276be6 100644 --- a/tests/unit/SimpleBlockSequences/Context.py +++ b/tests/unit/SimpleBlockSequences/Context.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Blocks.Common import WhitespaceBlock diff --git a/tests/unit/SimpleBlockSequences/Entity.py b/tests/unit/SimpleBlockSequences/Entity.py index 74ef05a63..53d95bb18 100644 --- a/tests/unit/SimpleBlockSequences/Entity.py +++ b/tests/unit/SimpleBlockSequences/Entity.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase diff --git a/tests/unit/SimpleBlockSequences/Function.py b/tests/unit/SimpleBlockSequences/Function.py index 66e9fdc24..aa0dcee2b 100644 --- a/tests/unit/SimpleBlockSequences/Function.py +++ b/tests/unit/SimpleBlockSequences/Function.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import WordToken, StartOfDocumentToken, SpaceToken, CharacterToken, EndOfDocumentToken diff --git a/tests/unit/SimpleBlockSequences/Library.py b/tests/unit/SimpleBlockSequences/Library.py index 2f7b90d3b..4afc1f662 100644 --- a/tests/unit/SimpleBlockSequences/Library.py +++ b/tests/unit/SimpleBlockSequences/Library.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Blocks.Reference import Library diff --git a/tests/unit/SimpleBlockSequences/Package.py b/tests/unit/SimpleBlockSequences/Package.py index e2fc9f4d3..3d239437a 100644 --- a/tests/unit/SimpleBlockSequences/Package.py +++ b/tests/unit/SimpleBlockSequences/Package.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase diff --git a/tests/unit/SimpleBlockSequences/PackageBody.py b/tests/unit/SimpleBlockSequences/PackageBody.py index 4855d8329..71d89792c 100644 --- a/tests/unit/SimpleBlockSequences/PackageBody.py +++ b/tests/unit/SimpleBlockSequences/PackageBody.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from textwrap import dedent from unittest import TestCase diff --git a/tests/unit/SimpleBlockSequences/PortList.py b/tests/unit/SimpleBlockSequences/PortList.py index 964d9f290..c2160a02a 100644 --- a/tests/unit/SimpleBlockSequences/PortList.py +++ b/tests/unit/SimpleBlockSequences/PortList.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Blocks.List import PortList diff --git a/tests/unit/SimpleBlockSequences/Procedure.py b/tests/unit/SimpleBlockSequences/Procedure.py index 4607532eb..6178cfbac 100644 --- a/tests/unit/SimpleBlockSequences/Procedure.py +++ b/tests/unit/SimpleBlockSequences/Procedure.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import WordToken, StartOfDocumentToken, SpaceToken, CharacterToken, EndOfDocumentToken diff --git a/tests/unit/SimpleBlockSequences/Process.py b/tests/unit/SimpleBlockSequences/Process.py index 2c64fab8f..61ea2d26f 100644 --- a/tests/unit/SimpleBlockSequences/Process.py +++ b/tests/unit/SimpleBlockSequences/Process.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import StartOfDocumentToken, WordToken, SpaceToken, CharacterToken, EndOfDocumentToken diff --git a/tests/unit/SimpleBlockSequences/Signal.py b/tests/unit/SimpleBlockSequences/Signal.py index 57300aa9d..a83d33e44 100644 --- a/tests/unit/SimpleBlockSequences/Signal.py +++ b/tests/unit/SimpleBlockSequences/Signal.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import StartOfDocumentToken, WordToken, SpaceToken, CharacterToken, EndOfDocumentToken diff --git a/tests/unit/SimpleBlockSequences/Use.py b/tests/unit/SimpleBlockSequences/Use.py index 71aba39f3..07d9cff5a 100644 --- a/tests/unit/SimpleBlockSequences/Use.py +++ b/tests/unit/SimpleBlockSequences/Use.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import WordToken, StartOfDocumentToken, SpaceToken, CharacterToken, EndOfDocumentToken, LinebreakToken diff --git a/tests/unit/SimpleBlockSequences/__init__.py b/tests/unit/SimpleBlockSequences/__init__.py index 9049004f5..3c5929c59 100644 --- a/tests/unit/SimpleBlockSequences/__init__.py +++ b/tests/unit/SimpleBlockSequences/__init__.py @@ -1,28 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit.SimpleBlockSequences import Architecture, Assert -# from tests.unit.SimpleBlockSequences import Constant, Context -# from tests.unit.SimpleBlockSequences import Entity, Function, Library -# from tests.unit.SimpleBlockSequences import Package, PackageBody, PortList, Procedure, Process -# from tests.unit.SimpleBlockSequences import Signal, Use -# -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Architecture)) -# suite.addTests(loader.loadTestsFromModule(Assert)) -# suite.addTests(loader.loadTestsFromModule(Constant)) -# suite.addTests(loader.loadTestsFromModule(Context)) -# suite.addTests(loader.loadTestsFromModule(Entity)) -# suite.addTests(loader.loadTestsFromModule(Function)) -# suite.addTests(loader.loadTestsFromModule(Library)) -# suite.addTests(loader.loadTestsFromModule(Package)) -# suite.addTests(loader.loadTestsFromModule(PackageBody)) -# suite.addTests(loader.loadTestsFromModule(PortList)) -# suite.addTests(loader.loadTestsFromModule(Procedure)) -# suite.addTests(loader.loadTestsFromModule(Process)) -# suite.addTests(loader.loadTestsFromModule(Signal)) -# suite.addTests(loader.loadTestsFromModule(Use)) -# -# return suite diff --git a/tests/unit/Tokenizer/Tokens.py b/tests/unit/Tokenizer/Tokens.py index 6d7bb98c6..7fd355cb7 100644 --- a/tests/unit/Tokenizer/Tokens.py +++ b/tests/unit/Tokenizer/Tokens.py @@ -1,3 +1,32 @@ +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # +# from unittest import TestCase from pyVHDLParser.Token import StartOfDocumentToken, WordToken, SpaceToken, LinebreakToken, IndentationToken, CharacterToken, CharacterLiteralToken, StringLiteralToken, BitStringLiteralToken, FusedCharacterToken, RealLiteralToken, IntegerLiteralToken, EndOfDocumentToken, ExtendedIdentifier, SingleLineCommentToken, MultiLineCommentToken diff --git a/tests/unit/Tokenizer/__init__.py b/tests/unit/Tokenizer/__init__.py index f4b6aca09..3c5929c59 100644 --- a/tests/unit/Tokenizer/__init__.py +++ b/tests/unit/Tokenizer/__init__.py @@ -1,10 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit.Tokenizer import Tokens -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Tokens)) -# -# return suite diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index dac491ed3..3c5929c59 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,13 +1,29 @@ -# from unittest import TestSuite +# ==================================================================================================================== # +# __ ___ _ ____ _ ____ # +# _ __ _ \ \ / / | | | _ \| | | _ \ __ _ _ __ ___ ___ _ __ # +# | '_ \| | | \ \ / /| |_| | | | | | | |_) / _` | '__/ __|/ _ \ '__| # +# | |_) | |_| |\ V / | _ | |_| | |___| __/ (_| | | \__ \ __/ | # +# | .__/ \__, | \_/ |_| |_|____/|_____|_| \__,_|_| |___/\___|_| # +# |_| |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany # +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# ==================================================================================================================== # # -# from tests.unit import Tokenizer, SimpleBlockSequences, DocumentModel -# -# -# def load_tests(loader, testCases, pattern): -# suite = TestSuite() -# -# suite.addTests(loader.loadTestsFromModule(Tokenizer)) -# suite.addTests(loader.loadTestsFromModule(SimpleBlockSequences)) -# suite.addTests(loader.loadTestsFromModule(DocumentModel)) -# -# return suite From 1aae9974bdd9cbc43fa8e8e4e6b843b3ea133527 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 22 Dec 2021 13:30:14 +0100 Subject: [PATCH 11/11] Fixed open issues reported in a review. --- .idea/misc.xml | 2 +- .idea/modules.xml | 2 +- .idea/pyVHDLParser.iml | 8 ++++++-- .idea/vcs.xml | 2 +- doc/BlockStream/Expressions.rst | 2 +- doc/requirements.txt | 18 ++++++++---------- tests/requirements.txt | 10 +++++++--- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index bfd101b14..bc77e743a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/modules.xml b/.idea/modules.xml index 4592146d4..b9f1c7d06 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/pyVHDLParser.iml b/.idea/pyVHDLParser.iml index f0b0d094c..af76f6ef3 100644 --- a/.idea/pyVHDLParser.iml +++ b/.idea/pyVHDLParser.iml @@ -2,13 +2,17 @@ + + + + - + - + \ No newline at end of file diff --git a/doc/BlockStream/Expressions.rst b/doc/BlockStream/Expressions.rst index 1c340af1e..2b232fa51 100644 --- a/doc/BlockStream/Expressions.rst +++ b/doc/BlockStream/Expressions.rst @@ -7,7 +7,7 @@ E.g. :class:`~pyVHDLParser.Blocks.Object.Constant.ConstantDeclarationDefaultExpr is derived from :class:`~pyVHDLParser.Blocks.BaseExpression.ExpressionBlockEndedBySemicolon`. Generic BaseExpression Form -*********************** +*************************** ExpressionBlock --------------- diff --git a/doc/requirements.txt b/doc/requirements.txt index 9322e563d..1a4aa13b1 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,24 +1,22 @@ -r ../requirements.txt -# Enforce latest version on ReadTheDocs -sphinx>=4.0.2 -# Sphinx Themes -sphinx-rtd-theme>=0.5.2 +# Enforce latest version on ReadTheDocs +sphinx>=4.3.0 +pyTooling>=1.7.0 # Sphinx Extenstions +#sphinx.ext.coverage #sphinxcontrib-actdiag>=0.8.5 +sphinxcontrib-mermaid>=0.7.1 #sphinxcontrib-seqdiag>=0.8.5 -# sphinxcontrib-textstyle>=0.2.1 -# sphinxcontrib-spelling>=2.2.0 +#sphinxcontrib-textstyle>=0.2.1 +#sphinxcontrib-spelling>=2.2.0 autoapi sphinx_fontawesome>=0.0.6 -sphinx_autodoc_typehints>=1.11.1 +sphinx_autodoc_typehints>=1.12.0 # changelog>=0.3.5 # BuildTheDocs Extensions (mostly patched Sphinx extensions) btd.sphinx.autoprogram>=0.1.7.post1 #btd.sphinx.graphviz>=2.3.1.post1 #btd.sphinx.inheritance_diagram>=2.3.1.post1 - -# Enforce newer version on ReadTheDocs (currently using 2.3.1) -Pygments>=2.9.0 diff --git a/tests/requirements.txt b/tests/requirements.txt index b6817b869..355fc98d8 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,8 +1,12 @@ -r ../requirements.txt # Coverage collection -Coverage>=5.5 +Coverage>=6.2 # Test Runner -pytest>=6.2.4 -pytest-cov>=2.12.1 +pytest>=6.2.5 +pytest-cov>=3.0.0 + +# Static Type Checking +mypy>=0.921 +lxml>=4.6.4