diff --git a/.github/workflows/cmake_install.yaml b/.github/workflows/cmake_install.yaml index 64abf2b..01d60a6 100644 --- a/.github/workflows/cmake_install.yaml +++ b/.github/workflows/cmake_install.yaml @@ -25,16 +25,16 @@ jobs: strategy: matrix: - python_version: ['3.8.13', '3.9.13', '3.10.5'] + python_version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python_version }} - - uses: lukka/get-cmake@v3.20.1 + - uses: lukka/get-cmake@v4.0.3 - name: Build run: | python3 --version diff --git a/.github/workflows/pip_install.yaml b/.github/workflows/pip_install.yaml index aab6b40..6d66948 100644 --- a/.github/workflows/pip_install.yaml +++ b/.github/workflows/pip_install.yaml @@ -31,10 +31,10 @@ jobs: python_version: ['3.8.13', '3.9.13', '3.10.5', '3.11.2'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python_version }} - name: Build diff --git a/.github/workflows/test_pip_install.yaml b/.github/workflows/test_pip_install.yaml index 6c1d139..cca7bd0 100644 --- a/.github/workflows/test_pip_install.yaml +++ b/.github/workflows/test_pip_install.yaml @@ -1,4 +1,4 @@ - # Copyright 2022 CMakePP +# Copyright 2022 CMakePP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,24 +19,30 @@ on: pull_request: branches: - master - + jobs: test_release: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - - name: Get the tags - run: git fetch --all --tags + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + - name: Create Python virtual environment + id: venv + run: | + python -m venv venv + echo "python=$PWD/venv/bin/python3" >> $GITHUB_OUTPUT - name: Install Python's "build" package - run: python -m pip install build twine --user + run: ${{ steps.venv.outputs.python }} -m pip install build twine packaging>=24.2 - name: Build binary wheel and source tarball - run: python -m build --sdist --wheel --outdir dist/ + run: ${{ steps.venv.outputs.python }} -m build --sdist --wheel --outdir dist/ - name: Test Long Description - run: twine check dist/* + run: ${{ steps.venv.outputs.python }} -m twine check dist/* - name: Test built package run: | - pip install pytest - pip install --user dist/*.tar.gz + ${{ steps.venv.outputs.python }} -m pip install pytest + ${{ steps.venv.outputs.python }} -m pip install dist/*.tar.gz cd tests - python -B test_all.py + ${{ steps.venv.outputs.python }} -B test_all.py diff --git a/pyproject.toml b/pyproject.toml index 062cc6c..f86369b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ classifiers = ["Development Status :: 5 - Production/Stable", ] urls = {"GitHub" = "https://github.com/CMakePP/CMinx"} scripts = {"cminx" = "cminx:main"} -dependencies = ["antlr4-python3-runtime==4.7.2", +dependencies = ["antlr4-python3-runtime==4.13.2", "confuse>=1.7", "pathspec>=0.9.0" ] diff --git a/src/cminx/__init__.py b/src/cminx/__init__.py index b1bdad8..50f4190 100644 --- a/src/cminx/__init__.py +++ b/src/cminx/__init__.py @@ -33,15 +33,15 @@ import pathspec from confuse import Configuration -from pkg_resources import get_distribution, DistributionNotFound +from importlib.metadata import version, PackageNotFoundError from .config import config_template, dict_to_settings, Settings from .documenter import Documenter from .rstwriter import RSTWriter try: - __version__ = get_distribution(__name__).version -except DistributionNotFound: + __version__ = version(__name__) +except PackageNotFoundError: # package is not installed __version__ = "UNKNOWN" diff --git a/src/cminx/parser/CMake.interp b/src/cminx/parser/CMake.interp index 114e487..2d86b49 100644 --- a/src/cminx/parser/CMake.interp +++ b/src/cminx/parser/CMake.interp @@ -45,4 +45,4 @@ compound_argument atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 17, 60, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 3, 2, 5, 2, 18, 10, 2, 3, 2, 3, 2, 3, 2, 7, 2, 23, 10, 2, 12, 2, 14, 2, 26, 11, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 7, 6, 41, 10, 6, 12, 6, 14, 6, 44, 11, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 7, 8, 53, 10, 8, 12, 8, 14, 8, 56, 11, 8, 3, 8, 3, 8, 3, 8, 2, 2, 9, 2, 4, 6, 8, 10, 12, 14, 2, 3, 4, 2, 9, 10, 12, 13, 2, 60, 2, 17, 3, 2, 2, 2, 4, 29, 3, 2, 2, 2, 6, 32, 3, 2, 2, 2, 8, 34, 3, 2, 2, 2, 10, 36, 3, 2, 2, 2, 12, 47, 3, 2, 2, 2, 14, 49, 3, 2, 2, 2, 16, 18, 5, 6, 4, 2, 17, 16, 3, 2, 2, 2, 17, 18, 3, 2, 2, 2, 18, 24, 3, 2, 2, 2, 19, 23, 5, 4, 3, 2, 20, 23, 5, 10, 6, 2, 21, 23, 5, 8, 5, 2, 22, 19, 3, 2, 2, 2, 22, 20, 3, 2, 2, 2, 22, 21, 3, 2, 2, 2, 23, 26, 3, 2, 2, 2, 24, 22, 3, 2, 2, 2, 24, 25, 3, 2, 2, 2, 25, 27, 3, 2, 2, 2, 26, 24, 3, 2, 2, 2, 27, 28, 7, 2, 2, 3, 28, 3, 3, 2, 2, 2, 29, 30, 5, 8, 5, 2, 30, 31, 5, 10, 6, 2, 31, 5, 3, 2, 2, 2, 32, 33, 7, 5, 2, 2, 33, 7, 3, 2, 2, 2, 34, 35, 7, 6, 2, 2, 35, 9, 3, 2, 2, 2, 36, 37, 7, 9, 2, 2, 37, 42, 7, 3, 2, 2, 38, 41, 5, 12, 7, 2, 39, 41, 5, 14, 8, 2, 40, 38, 3, 2, 2, 2, 40, 39, 3, 2, 2, 2, 41, 44, 3, 2, 2, 2, 42, 40, 3, 2, 2, 2, 42, 43, 3, 2, 2, 2, 43, 45, 3, 2, 2, 2, 44, 42, 3, 2, 2, 2, 45, 46, 7, 4, 2, 2, 46, 11, 3, 2, 2, 2, 47, 48, 9, 2, 2, 2, 48, 13, 3, 2, 2, 2, 49, 54, 7, 3, 2, 2, 50, 53, 5, 12, 7, 2, 51, 53, 5, 14, 8, 2, 52, 50, 3, 2, 2, 2, 52, 51, 3, 2, 2, 2, 53, 56, 3, 2, 2, 2, 54, 52, 3, 2, 2, 2, 54, 55, 3, 2, 2, 2, 55, 57, 3, 2, 2, 2, 56, 54, 3, 2, 2, 2, 57, 58, 7, 4, 2, 2, 58, 15, 3, 2, 2, 2, 9, 17, 22, 24, 40, 42, 52, 54] \ No newline at end of file +[4, 1, 15, 58, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 1, 0, 3, 0, 16, 8, 0, 1, 0, 1, 0, 1, 0, 5, 0, 21, 8, 0, 10, 0, 12, 0, 24, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 39, 8, 4, 10, 4, 12, 4, 42, 9, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 5, 6, 51, 8, 6, 10, 6, 12, 6, 54, 9, 6, 1, 6, 1, 6, 1, 6, 0, 0, 7, 0, 2, 4, 6, 8, 10, 12, 0, 1, 2, 0, 7, 8, 10, 11, 58, 0, 15, 1, 0, 0, 0, 2, 27, 1, 0, 0, 0, 4, 30, 1, 0, 0, 0, 6, 32, 1, 0, 0, 0, 8, 34, 1, 0, 0, 0, 10, 45, 1, 0, 0, 0, 12, 47, 1, 0, 0, 0, 14, 16, 3, 4, 2, 0, 15, 14, 1, 0, 0, 0, 15, 16, 1, 0, 0, 0, 16, 22, 1, 0, 0, 0, 17, 21, 3, 2, 1, 0, 18, 21, 3, 8, 4, 0, 19, 21, 3, 6, 3, 0, 20, 17, 1, 0, 0, 0, 20, 18, 1, 0, 0, 0, 20, 19, 1, 0, 0, 0, 21, 24, 1, 0, 0, 0, 22, 20, 1, 0, 0, 0, 22, 23, 1, 0, 0, 0, 23, 25, 1, 0, 0, 0, 24, 22, 1, 0, 0, 0, 25, 26, 5, 0, 0, 1, 26, 1, 1, 0, 0, 0, 27, 28, 3, 6, 3, 0, 28, 29, 3, 8, 4, 0, 29, 3, 1, 0, 0, 0, 30, 31, 5, 3, 0, 0, 31, 5, 1, 0, 0, 0, 32, 33, 5, 4, 0, 0, 33, 7, 1, 0, 0, 0, 34, 35, 5, 7, 0, 0, 35, 40, 5, 1, 0, 0, 36, 39, 3, 10, 5, 0, 37, 39, 3, 12, 6, 0, 38, 36, 1, 0, 0, 0, 38, 37, 1, 0, 0, 0, 39, 42, 1, 0, 0, 0, 40, 38, 1, 0, 0, 0, 40, 41, 1, 0, 0, 0, 41, 43, 1, 0, 0, 0, 42, 40, 1, 0, 0, 0, 43, 44, 5, 2, 0, 0, 44, 9, 1, 0, 0, 0, 45, 46, 7, 0, 0, 0, 46, 11, 1, 0, 0, 0, 47, 52, 5, 1, 0, 0, 48, 51, 3, 10, 5, 0, 49, 51, 3, 12, 6, 0, 50, 48, 1, 0, 0, 0, 50, 49, 1, 0, 0, 0, 51, 54, 1, 0, 0, 0, 52, 50, 1, 0, 0, 0, 52, 53, 1, 0, 0, 0, 53, 55, 1, 0, 0, 0, 54, 52, 1, 0, 0, 0, 55, 56, 5, 2, 0, 0, 56, 13, 1, 0, 0, 0, 7, 15, 20, 22, 38, 40, 50, 52] \ No newline at end of file diff --git a/src/cminx/parser/CMakeLexer.interp b/src/cminx/parser/CMakeLexer.interp index bafa7aa..faa4893 100644 --- a/src/cminx/parser/CMakeLexer.interp +++ b/src/cminx/parser/CMakeLexer.interp @@ -64,4 +64,4 @@ mode names: DEFAULT_MODE atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 17, 229, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 5, 4, 50, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 63, 10, 4, 3, 4, 7, 4, 66, 10, 4, 12, 4, 14, 4, 69, 11, 4, 3, 4, 3, 4, 3, 5, 3, 5, 5, 5, 75, 10, 5, 3, 5, 7, 5, 78, 10, 5, 12, 5, 14, 5, 81, 11, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 7, 8, 96, 10, 8, 12, 8, 14, 8, 99, 11, 8, 3, 9, 3, 9, 6, 9, 103, 10, 9, 13, 9, 14, 9, 104, 3, 10, 3, 10, 3, 10, 5, 10, 110, 10, 10, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 121, 10, 12, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 7, 14, 130, 10, 14, 12, 14, 14, 14, 133, 11, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 5, 15, 140, 10, 15, 3, 15, 5, 15, 143, 10, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 7, 17, 155, 10, 17, 12, 17, 14, 17, 158, 11, 17, 3, 17, 5, 17, 161, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 7, 19, 175, 10, 19, 12, 19, 14, 19, 178, 11, 19, 3, 19, 3, 19, 7, 19, 182, 10, 19, 12, 19, 14, 19, 185, 11, 19, 3, 19, 3, 19, 7, 19, 189, 10, 19, 12, 19, 14, 19, 192, 11, 19, 3, 19, 3, 19, 7, 19, 196, 10, 19, 12, 19, 14, 19, 199, 11, 19, 5, 19, 201, 10, 19, 3, 19, 3, 19, 5, 19, 205, 10, 19, 3, 19, 5, 19, 208, 10, 19, 3, 19, 3, 19, 3, 20, 3, 20, 5, 20, 214, 10, 20, 3, 20, 6, 20, 217, 10, 20, 13, 20, 14, 20, 218, 3, 20, 3, 20, 3, 21, 6, 21, 224, 10, 21, 13, 21, 14, 21, 225, 3, 21, 3, 21, 5, 67, 79, 156, 2, 22, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 2, 23, 2, 25, 2, 27, 12, 29, 2, 31, 13, 33, 2, 35, 14, 37, 15, 39, 16, 41, 17, 3, 2, 12, 5, 2, 67, 92, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 8, 2, 11, 12, 15, 15, 34, 34, 36, 37, 42, 43, 94, 94, 6, 2, 50, 59, 61, 61, 67, 92, 99, 124, 4, 2, 36, 36, 94, 94, 6, 2, 12, 12, 15, 15, 63, 63, 93, 93, 4, 2, 12, 12, 15, 15, 5, 2, 12, 12, 15, 15, 93, 93, 3, 3, 12, 12, 4, 2, 11, 11, 34, 34, 2, 255, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 3, 43, 3, 2, 2, 2, 5, 45, 3, 2, 2, 2, 7, 47, 3, 2, 2, 2, 9, 72, 3, 2, 2, 2, 11, 84, 3, 2, 2, 2, 13, 89, 3, 2, 2, 2, 15, 93, 3, 2, 2, 2, 17, 102, 3, 2, 2, 2, 19, 109, 3, 2, 2, 2, 21, 111, 3, 2, 2, 2, 23, 120, 3, 2, 2, 2, 25, 122, 3, 2, 2, 2, 27, 125, 3, 2, 2, 2, 29, 136, 3, 2, 2, 2, 31, 144, 3, 2, 2, 2, 33, 160, 3, 2, 2, 2, 35, 162, 3, 2, 2, 2, 37, 170, 3, 2, 2, 2, 39, 216, 3, 2, 2, 2, 41, 223, 3, 2, 2, 2, 43, 44, 7, 42, 2, 2, 44, 4, 3, 2, 2, 2, 45, 46, 7, 43, 2, 2, 46, 6, 3, 2, 2, 2, 47, 49, 5, 11, 6, 2, 48, 50, 5, 41, 21, 2, 49, 48, 3, 2, 2, 2, 49, 50, 3, 2, 2, 2, 50, 51, 3, 2, 2, 2, 51, 52, 7, 66, 2, 2, 52, 53, 7, 111, 2, 2, 53, 54, 7, 113, 2, 2, 54, 55, 7, 102, 2, 2, 55, 56, 7, 119, 2, 2, 56, 57, 7, 110, 2, 2, 57, 58, 7, 103, 2, 2, 58, 62, 3, 2, 2, 2, 59, 60, 5, 41, 21, 2, 60, 61, 5, 17, 9, 2, 61, 63, 3, 2, 2, 2, 62, 59, 3, 2, 2, 2, 62, 63, 3, 2, 2, 2, 63, 67, 3, 2, 2, 2, 64, 66, 11, 2, 2, 2, 65, 64, 3, 2, 2, 2, 66, 69, 3, 2, 2, 2, 67, 68, 3, 2, 2, 2, 67, 65, 3, 2, 2, 2, 68, 70, 3, 2, 2, 2, 69, 67, 3, 2, 2, 2, 70, 71, 5, 13, 7, 2, 71, 8, 3, 2, 2, 2, 72, 74, 5, 11, 6, 2, 73, 75, 5, 41, 21, 2, 74, 73, 3, 2, 2, 2, 74, 75, 3, 2, 2, 2, 75, 79, 3, 2, 2, 2, 76, 78, 11, 2, 2, 2, 77, 76, 3, 2, 2, 2, 78, 81, 3, 2, 2, 2, 79, 80, 3, 2, 2, 2, 79, 77, 3, 2, 2, 2, 80, 82, 3, 2, 2, 2, 81, 79, 3, 2, 2, 2, 82, 83, 5, 13, 7, 2, 83, 10, 3, 2, 2, 2, 84, 85, 7, 37, 2, 2, 85, 86, 7, 93, 2, 2, 86, 87, 7, 93, 2, 2, 87, 88, 7, 93, 2, 2, 88, 12, 3, 2, 2, 2, 89, 90, 7, 37, 2, 2, 90, 91, 7, 95, 2, 2, 91, 92, 7, 95, 2, 2, 92, 14, 3, 2, 2, 2, 93, 97, 9, 2, 2, 2, 94, 96, 9, 3, 2, 2, 95, 94, 3, 2, 2, 2, 96, 99, 3, 2, 2, 2, 97, 95, 3, 2, 2, 2, 97, 98, 3, 2, 2, 2, 98, 16, 3, 2, 2, 2, 99, 97, 3, 2, 2, 2, 100, 103, 10, 4, 2, 2, 101, 103, 5, 19, 10, 2, 102, 100, 3, 2, 2, 2, 102, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 102, 3, 2, 2, 2, 104, 105, 3, 2, 2, 2, 105, 18, 3, 2, 2, 2, 106, 110, 5, 21, 11, 2, 107, 110, 5, 23, 12, 2, 108, 110, 5, 25, 13, 2, 109, 106, 3, 2, 2, 2, 109, 107, 3, 2, 2, 2, 109, 108, 3, 2, 2, 2, 110, 20, 3, 2, 2, 2, 111, 112, 7, 94, 2, 2, 112, 113, 10, 5, 2, 2, 113, 22, 3, 2, 2, 2, 114, 115, 7, 94, 2, 2, 115, 121, 7, 118, 2, 2, 116, 117, 7, 94, 2, 2, 117, 121, 7, 116, 2, 2, 118, 119, 7, 94, 2, 2, 119, 121, 7, 112, 2, 2, 120, 114, 3, 2, 2, 2, 120, 116, 3, 2, 2, 2, 120, 118, 3, 2, 2, 2, 121, 24, 3, 2, 2, 2, 122, 123, 7, 94, 2, 2, 123, 124, 7, 61, 2, 2, 124, 26, 3, 2, 2, 2, 125, 131, 7, 36, 2, 2, 126, 130, 10, 6, 2, 2, 127, 130, 5, 19, 10, 2, 128, 130, 5, 29, 15, 2, 129, 126, 3, 2, 2, 2, 129, 127, 3, 2, 2, 2, 129, 128, 3, 2, 2, 2, 130, 133, 3, 2, 2, 2, 131, 129, 3, 2, 2, 2, 131, 132, 3, 2, 2, 2, 132, 134, 3, 2, 2, 2, 133, 131, 3, 2, 2, 2, 134, 135, 7, 36, 2, 2, 135, 28, 3, 2, 2, 2, 136, 142, 7, 94, 2, 2, 137, 139, 7, 15, 2, 2, 138, 140, 7, 12, 2, 2, 139, 138, 3, 2, 2, 2, 139, 140, 3, 2, 2, 2, 140, 143, 3, 2, 2, 2, 141, 143, 7, 12, 2, 2, 142, 137, 3, 2, 2, 2, 142, 141, 3, 2, 2, 2, 143, 30, 3, 2, 2, 2, 144, 145, 7, 93, 2, 2, 145, 146, 5, 33, 17, 2, 146, 147, 7, 95, 2, 2, 147, 32, 3, 2, 2, 2, 148, 149, 7, 63, 2, 2, 149, 150, 5, 33, 17, 2, 150, 151, 7, 63, 2, 2, 151, 161, 3, 2, 2, 2, 152, 156, 7, 93, 2, 2, 153, 155, 11, 2, 2, 2, 154, 153, 3, 2, 2, 2, 155, 158, 3, 2, 2, 2, 156, 157, 3, 2, 2, 2, 156, 154, 3, 2, 2, 2, 157, 159, 3, 2, 2, 2, 158, 156, 3, 2, 2, 2, 159, 161, 7, 95, 2, 2, 160, 148, 3, 2, 2, 2, 160, 152, 3, 2, 2, 2, 161, 34, 3, 2, 2, 2, 162, 163, 7, 37, 2, 2, 163, 164, 7, 93, 2, 2, 164, 165, 3, 2, 2, 2, 165, 166, 5, 33, 17, 2, 166, 167, 7, 95, 2, 2, 167, 168, 3, 2, 2, 2, 168, 169, 8, 18, 2, 2, 169, 36, 3, 2, 2, 2, 170, 200, 7, 37, 2, 2, 171, 201, 3, 2, 2, 2, 172, 176, 7, 93, 2, 2, 173, 175, 7, 63, 2, 2, 174, 173, 3, 2, 2, 2, 175, 178, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 176, 177, 3, 2, 2, 2, 177, 201, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 179, 183, 7, 93, 2, 2, 180, 182, 7, 63, 2, 2, 181, 180, 3, 2, 2, 2, 182, 185, 3, 2, 2, 2, 183, 181, 3, 2, 2, 2, 183, 184, 3, 2, 2, 2, 184, 186, 3, 2, 2, 2, 185, 183, 3, 2, 2, 2, 186, 190, 10, 7, 2, 2, 187, 189, 10, 8, 2, 2, 188, 187, 3, 2, 2, 2, 189, 192, 3, 2, 2, 2, 190, 188, 3, 2, 2, 2, 190, 191, 3, 2, 2, 2, 191, 201, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 193, 197, 10, 9, 2, 2, 194, 196, 10, 8, 2, 2, 195, 194, 3, 2, 2, 2, 196, 199, 3, 2, 2, 2, 197, 195, 3, 2, 2, 2, 197, 198, 3, 2, 2, 2, 198, 201, 3, 2, 2, 2, 199, 197, 3, 2, 2, 2, 200, 171, 3, 2, 2, 2, 200, 172, 3, 2, 2, 2, 200, 179, 3, 2, 2, 2, 200, 193, 3, 2, 2, 2, 201, 207, 3, 2, 2, 2, 202, 204, 7, 15, 2, 2, 203, 205, 7, 12, 2, 2, 204, 203, 3, 2, 2, 2, 204, 205, 3, 2, 2, 2, 205, 208, 3, 2, 2, 2, 206, 208, 9, 10, 2, 2, 207, 202, 3, 2, 2, 2, 207, 206, 3, 2, 2, 2, 208, 209, 3, 2, 2, 2, 209, 210, 8, 19, 2, 2, 210, 38, 3, 2, 2, 2, 211, 213, 7, 15, 2, 2, 212, 214, 7, 12, 2, 2, 213, 212, 3, 2, 2, 2, 213, 214, 3, 2, 2, 2, 214, 217, 3, 2, 2, 2, 215, 217, 7, 12, 2, 2, 216, 211, 3, 2, 2, 2, 216, 215, 3, 2, 2, 2, 217, 218, 3, 2, 2, 2, 218, 216, 3, 2, 2, 2, 218, 219, 3, 2, 2, 2, 219, 220, 3, 2, 2, 2, 220, 221, 8, 20, 2, 2, 221, 40, 3, 2, 2, 2, 222, 224, 9, 11, 2, 2, 223, 222, 3, 2, 2, 2, 224, 225, 3, 2, 2, 2, 225, 223, 3, 2, 2, 2, 225, 226, 3, 2, 2, 2, 226, 227, 3, 2, 2, 2, 227, 228, 8, 21, 2, 2, 228, 42, 3, 2, 2, 2, 30, 2, 49, 62, 67, 74, 79, 97, 102, 104, 109, 120, 129, 131, 139, 142, 156, 160, 176, 183, 190, 197, 200, 204, 207, 213, 216, 218, 225, 3, 8, 2, 2] \ No newline at end of file +[4, 0, 15, 227, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 3, 2, 48, 8, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 61, 8, 2, 1, 2, 5, 2, 64, 8, 2, 10, 2, 12, 2, 67, 9, 2, 1, 2, 1, 2, 1, 3, 1, 3, 3, 3, 73, 8, 3, 1, 3, 5, 3, 76, 8, 3, 10, 3, 12, 3, 79, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 5, 6, 94, 8, 6, 10, 6, 12, 6, 97, 9, 6, 1, 7, 1, 7, 4, 7, 101, 8, 7, 11, 7, 12, 7, 102, 1, 8, 1, 8, 1, 8, 3, 8, 108, 8, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 119, 8, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 128, 8, 12, 10, 12, 12, 12, 131, 9, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 3, 13, 138, 8, 13, 1, 13, 3, 13, 141, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 153, 8, 15, 10, 15, 12, 15, 156, 9, 15, 1, 15, 3, 15, 159, 8, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 173, 8, 17, 10, 17, 12, 17, 176, 9, 17, 1, 17, 1, 17, 5, 17, 180, 8, 17, 10, 17, 12, 17, 183, 9, 17, 1, 17, 1, 17, 5, 17, 187, 8, 17, 10, 17, 12, 17, 190, 9, 17, 1, 17, 1, 17, 5, 17, 194, 8, 17, 10, 17, 12, 17, 197, 9, 17, 3, 17, 199, 8, 17, 1, 17, 1, 17, 3, 17, 203, 8, 17, 1, 17, 3, 17, 206, 8, 17, 1, 17, 1, 17, 1, 18, 1, 18, 3, 18, 212, 8, 18, 1, 18, 4, 18, 215, 8, 18, 11, 18, 12, 18, 216, 1, 18, 1, 18, 1, 19, 4, 19, 222, 8, 19, 11, 19, 12, 19, 223, 1, 19, 1, 19, 3, 65, 77, 154, 0, 20, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 0, 21, 0, 23, 0, 25, 10, 27, 0, 29, 11, 31, 0, 33, 12, 35, 13, 37, 14, 39, 15, 1, 0, 10, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 6, 0, 9, 10, 13, 13, 32, 32, 34, 35, 40, 41, 92, 92, 4, 0, 48, 57, 59, 59, 65, 90, 97, 122, 2, 0, 34, 34, 92, 92, 4, 0, 10, 10, 13, 13, 61, 61, 91, 91, 2, 0, 10, 10, 13, 13, 3, 0, 10, 10, 13, 13, 91, 91, 1, 1, 10, 10, 2, 0, 9, 9, 32, 32, 253, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 1, 41, 1, 0, 0, 0, 3, 43, 1, 0, 0, 0, 5, 45, 1, 0, 0, 0, 7, 70, 1, 0, 0, 0, 9, 82, 1, 0, 0, 0, 11, 87, 1, 0, 0, 0, 13, 91, 1, 0, 0, 0, 15, 100, 1, 0, 0, 0, 17, 107, 1, 0, 0, 0, 19, 109, 1, 0, 0, 0, 21, 118, 1, 0, 0, 0, 23, 120, 1, 0, 0, 0, 25, 123, 1, 0, 0, 0, 27, 134, 1, 0, 0, 0, 29, 142, 1, 0, 0, 0, 31, 158, 1, 0, 0, 0, 33, 160, 1, 0, 0, 0, 35, 168, 1, 0, 0, 0, 37, 214, 1, 0, 0, 0, 39, 221, 1, 0, 0, 0, 41, 42, 5, 40, 0, 0, 42, 2, 1, 0, 0, 0, 43, 44, 5, 41, 0, 0, 44, 4, 1, 0, 0, 0, 45, 47, 3, 9, 4, 0, 46, 48, 3, 39, 19, 0, 47, 46, 1, 0, 0, 0, 47, 48, 1, 0, 0, 0, 48, 49, 1, 0, 0, 0, 49, 50, 5, 64, 0, 0, 50, 51, 5, 109, 0, 0, 51, 52, 5, 111, 0, 0, 52, 53, 5, 100, 0, 0, 53, 54, 5, 117, 0, 0, 54, 55, 5, 108, 0, 0, 55, 56, 5, 101, 0, 0, 56, 60, 1, 0, 0, 0, 57, 58, 3, 39, 19, 0, 58, 59, 3, 15, 7, 0, 59, 61, 1, 0, 0, 0, 60, 57, 1, 0, 0, 0, 60, 61, 1, 0, 0, 0, 61, 65, 1, 0, 0, 0, 62, 64, 9, 0, 0, 0, 63, 62, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 66, 68, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 69, 3, 11, 5, 0, 69, 6, 1, 0, 0, 0, 70, 72, 3, 9, 4, 0, 71, 73, 3, 39, 19, 0, 72, 71, 1, 0, 0, 0, 72, 73, 1, 0, 0, 0, 73, 77, 1, 0, 0, 0, 74, 76, 9, 0, 0, 0, 75, 74, 1, 0, 0, 0, 76, 79, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 77, 75, 1, 0, 0, 0, 78, 80, 1, 0, 0, 0, 79, 77, 1, 0, 0, 0, 80, 81, 3, 11, 5, 0, 81, 8, 1, 0, 0, 0, 82, 83, 5, 35, 0, 0, 83, 84, 5, 91, 0, 0, 84, 85, 5, 91, 0, 0, 85, 86, 5, 91, 0, 0, 86, 10, 1, 0, 0, 0, 87, 88, 5, 35, 0, 0, 88, 89, 5, 93, 0, 0, 89, 90, 5, 93, 0, 0, 90, 12, 1, 0, 0, 0, 91, 95, 7, 0, 0, 0, 92, 94, 7, 1, 0, 0, 93, 92, 1, 0, 0, 0, 94, 97, 1, 0, 0, 0, 95, 93, 1, 0, 0, 0, 95, 96, 1, 0, 0, 0, 96, 14, 1, 0, 0, 0, 97, 95, 1, 0, 0, 0, 98, 101, 8, 2, 0, 0, 99, 101, 3, 17, 8, 0, 100, 98, 1, 0, 0, 0, 100, 99, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 16, 1, 0, 0, 0, 104, 108, 3, 19, 9, 0, 105, 108, 3, 21, 10, 0, 106, 108, 3, 23, 11, 0, 107, 104, 1, 0, 0, 0, 107, 105, 1, 0, 0, 0, 107, 106, 1, 0, 0, 0, 108, 18, 1, 0, 0, 0, 109, 110, 5, 92, 0, 0, 110, 111, 8, 3, 0, 0, 111, 20, 1, 0, 0, 0, 112, 113, 5, 92, 0, 0, 113, 119, 5, 116, 0, 0, 114, 115, 5, 92, 0, 0, 115, 119, 5, 114, 0, 0, 116, 117, 5, 92, 0, 0, 117, 119, 5, 110, 0, 0, 118, 112, 1, 0, 0, 0, 118, 114, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 119, 22, 1, 0, 0, 0, 120, 121, 5, 92, 0, 0, 121, 122, 5, 59, 0, 0, 122, 24, 1, 0, 0, 0, 123, 129, 5, 34, 0, 0, 124, 128, 8, 4, 0, 0, 125, 128, 3, 17, 8, 0, 126, 128, 3, 27, 13, 0, 127, 124, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 131, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 130, 1, 0, 0, 0, 130, 132, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0, 132, 133, 5, 34, 0, 0, 133, 26, 1, 0, 0, 0, 134, 140, 5, 92, 0, 0, 135, 137, 5, 13, 0, 0, 136, 138, 5, 10, 0, 0, 137, 136, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0, 139, 141, 5, 10, 0, 0, 140, 135, 1, 0, 0, 0, 140, 139, 1, 0, 0, 0, 141, 28, 1, 0, 0, 0, 142, 143, 5, 91, 0, 0, 143, 144, 3, 31, 15, 0, 144, 145, 5, 93, 0, 0, 145, 30, 1, 0, 0, 0, 146, 147, 5, 61, 0, 0, 147, 148, 3, 31, 15, 0, 148, 149, 5, 61, 0, 0, 149, 159, 1, 0, 0, 0, 150, 154, 5, 91, 0, 0, 151, 153, 9, 0, 0, 0, 152, 151, 1, 0, 0, 0, 153, 156, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 154, 152, 1, 0, 0, 0, 155, 157, 1, 0, 0, 0, 156, 154, 1, 0, 0, 0, 157, 159, 5, 93, 0, 0, 158, 146, 1, 0, 0, 0, 158, 150, 1, 0, 0, 0, 159, 32, 1, 0, 0, 0, 160, 161, 5, 35, 0, 0, 161, 162, 5, 91, 0, 0, 162, 163, 1, 0, 0, 0, 163, 164, 3, 31, 15, 0, 164, 165, 5, 93, 0, 0, 165, 166, 1, 0, 0, 0, 166, 167, 6, 16, 0, 0, 167, 34, 1, 0, 0, 0, 168, 198, 5, 35, 0, 0, 169, 199, 1, 0, 0, 0, 170, 174, 5, 91, 0, 0, 171, 173, 5, 61, 0, 0, 172, 171, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 199, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 177, 181, 5, 91, 0, 0, 178, 180, 5, 61, 0, 0, 179, 178, 1, 0, 0, 0, 180, 183, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 184, 1, 0, 0, 0, 183, 181, 1, 0, 0, 0, 184, 188, 8, 5, 0, 0, 185, 187, 8, 6, 0, 0, 186, 185, 1, 0, 0, 0, 187, 190, 1, 0, 0, 0, 188, 186, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 199, 1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 191, 195, 8, 7, 0, 0, 192, 194, 8, 6, 0, 0, 193, 192, 1, 0, 0, 0, 194, 197, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 199, 1, 0, 0, 0, 197, 195, 1, 0, 0, 0, 198, 169, 1, 0, 0, 0, 198, 170, 1, 0, 0, 0, 198, 177, 1, 0, 0, 0, 198, 191, 1, 0, 0, 0, 199, 205, 1, 0, 0, 0, 200, 202, 5, 13, 0, 0, 201, 203, 5, 10, 0, 0, 202, 201, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 206, 1, 0, 0, 0, 204, 206, 7, 8, 0, 0, 205, 200, 1, 0, 0, 0, 205, 204, 1, 0, 0, 0, 206, 207, 1, 0, 0, 0, 207, 208, 6, 17, 0, 0, 208, 36, 1, 0, 0, 0, 209, 211, 5, 13, 0, 0, 210, 212, 5, 10, 0, 0, 211, 210, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 215, 1, 0, 0, 0, 213, 215, 5, 10, 0, 0, 214, 209, 1, 0, 0, 0, 214, 213, 1, 0, 0, 0, 215, 216, 1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 219, 6, 18, 0, 0, 219, 38, 1, 0, 0, 0, 220, 222, 7, 9, 0, 0, 221, 220, 1, 0, 0, 0, 222, 223, 1, 0, 0, 0, 223, 221, 1, 0, 0, 0, 223, 224, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 226, 6, 19, 0, 0, 226, 40, 1, 0, 0, 0, 28, 0, 47, 60, 65, 72, 77, 95, 100, 102, 107, 118, 127, 129, 137, 140, 154, 158, 174, 181, 188, 195, 198, 202, 205, 211, 214, 216, 223, 1, 6, 0, 0] \ No newline at end of file diff --git a/src/cminx/parser/CMakeLexer.py b/src/cminx/parser/CMakeLexer.py index ecf31f7..73ec7c1 100644 --- a/src/cminx/parser/CMakeLexer.py +++ b/src/cminx/parser/CMakeLexer.py @@ -1,116 +1,103 @@ -# Generated from CMake.g4 by ANTLR 4.7.2 +# Generated from ./src/cminx/parser/CMake.g4 by ANTLR 4.13.2 from antlr4 import * from io import StringIO -from typing.io import TextIO import sys +if sys.version_info[1] > 5: + from typing import TextIO +else: + from typing.io import TextIO def serializedATN(): - with StringIO() as buf: - buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\21") - buf.write("\u00e5\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7") - buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r") - buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23") - buf.write("\t\23\4\24\t\24\4\25\t\25\3\2\3\2\3\3\3\3\3\4\3\4\5\4") - buf.write("\62\n\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\5") - buf.write("\4?\n\4\3\4\7\4B\n\4\f\4\16\4E\13\4\3\4\3\4\3\5\3\5\5") - buf.write("\5K\n\5\3\5\7\5N\n\5\f\5\16\5Q\13\5\3\5\3\5\3\6\3\6\3") - buf.write("\6\3\6\3\6\3\7\3\7\3\7\3\7\3\b\3\b\7\b`\n\b\f\b\16\bc") - buf.write("\13\b\3\t\3\t\6\tg\n\t\r\t\16\th\3\n\3\n\3\n\5\nn\n\n") - buf.write("\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\f\3\f\5\fy\n\f\3\r\3") - buf.write("\r\3\r\3\16\3\16\3\16\3\16\7\16\u0082\n\16\f\16\16\16") - buf.write("\u0085\13\16\3\16\3\16\3\17\3\17\3\17\5\17\u008c\n\17") - buf.write("\3\17\5\17\u008f\n\17\3\20\3\20\3\20\3\20\3\21\3\21\3") - buf.write("\21\3\21\3\21\3\21\7\21\u009b\n\21\f\21\16\21\u009e\13") - buf.write("\21\3\21\5\21\u00a1\n\21\3\22\3\22\3\22\3\22\3\22\3\22") - buf.write("\3\22\3\22\3\23\3\23\3\23\3\23\7\23\u00af\n\23\f\23\16") - buf.write("\23\u00b2\13\23\3\23\3\23\7\23\u00b6\n\23\f\23\16\23\u00b9") - buf.write("\13\23\3\23\3\23\7\23\u00bd\n\23\f\23\16\23\u00c0\13\23") - buf.write("\3\23\3\23\7\23\u00c4\n\23\f\23\16\23\u00c7\13\23\5\23") - buf.write("\u00c9\n\23\3\23\3\23\5\23\u00cd\n\23\3\23\5\23\u00d0") - buf.write("\n\23\3\23\3\23\3\24\3\24\5\24\u00d6\n\24\3\24\6\24\u00d9") - buf.write("\n\24\r\24\16\24\u00da\3\24\3\24\3\25\6\25\u00e0\n\25") - buf.write("\r\25\16\25\u00e1\3\25\3\25\5CO\u009c\2\26\3\3\5\4\7\5") - buf.write("\t\6\13\7\r\b\17\t\21\n\23\13\25\2\27\2\31\2\33\f\35\2") - buf.write("\37\r!\2#\16%\17\'\20)\21\3\2\f\5\2C\\aac|\6\2\62;C\\") - buf.write("aac|\b\2\13\f\17\17\"\"$%*+^^\6\2\62;==C\\c|\4\2$$^^\6") - buf.write("\2\f\f\17\17??]]\4\2\f\f\17\17\5\2\f\f\17\17]]\3\3\f\f") - buf.write("\4\2\13\13\"\"\2\u00ff\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2") - buf.write("\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2") - buf.write("\2\21\3\2\2\2\2\23\3\2\2\2\2\33\3\2\2\2\2\37\3\2\2\2\2") - buf.write("#\3\2\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\3+\3\2\2\2") - buf.write("\5-\3\2\2\2\7/\3\2\2\2\tH\3\2\2\2\13T\3\2\2\2\rY\3\2\2") - buf.write("\2\17]\3\2\2\2\21f\3\2\2\2\23m\3\2\2\2\25o\3\2\2\2\27") - buf.write("x\3\2\2\2\31z\3\2\2\2\33}\3\2\2\2\35\u0088\3\2\2\2\37") - buf.write("\u0090\3\2\2\2!\u00a0\3\2\2\2#\u00a2\3\2\2\2%\u00aa\3") - buf.write("\2\2\2\'\u00d8\3\2\2\2)\u00df\3\2\2\2+,\7*\2\2,\4\3\2") - buf.write("\2\2-.\7+\2\2.\6\3\2\2\2/\61\5\13\6\2\60\62\5)\25\2\61") - buf.write("\60\3\2\2\2\61\62\3\2\2\2\62\63\3\2\2\2\63\64\7B\2\2\64") - buf.write("\65\7o\2\2\65\66\7q\2\2\66\67\7f\2\2\678\7w\2\289\7n\2") - buf.write("\29:\7g\2\2:>\3\2\2\2;<\5)\25\2<=\5\21\t\2=?\3\2\2\2>") - buf.write(";\3\2\2\2>?\3\2\2\2?C\3\2\2\2@B\13\2\2\2A@\3\2\2\2BE\3") - buf.write("\2\2\2CD\3\2\2\2CA\3\2\2\2DF\3\2\2\2EC\3\2\2\2FG\5\r\7") - buf.write("\2G\b\3\2\2\2HJ\5\13\6\2IK\5)\25\2JI\3\2\2\2JK\3\2\2\2") - buf.write("KO\3\2\2\2LN\13\2\2\2ML\3\2\2\2NQ\3\2\2\2OP\3\2\2\2OM") - buf.write("\3\2\2\2PR\3\2\2\2QO\3\2\2\2RS\5\r\7\2S\n\3\2\2\2TU\7") - buf.write("%\2\2UV\7]\2\2VW\7]\2\2WX\7]\2\2X\f\3\2\2\2YZ\7%\2\2Z") - buf.write("[\7_\2\2[\\\7_\2\2\\\16\3\2\2\2]a\t\2\2\2^`\t\3\2\2_^") - buf.write("\3\2\2\2`c\3\2\2\2a_\3\2\2\2ab\3\2\2\2b\20\3\2\2\2ca\3") - buf.write("\2\2\2dg\n\4\2\2eg\5\23\n\2fd\3\2\2\2fe\3\2\2\2gh\3\2") - buf.write("\2\2hf\3\2\2\2hi\3\2\2\2i\22\3\2\2\2jn\5\25\13\2kn\5\27") - buf.write("\f\2ln\5\31\r\2mj\3\2\2\2mk\3\2\2\2ml\3\2\2\2n\24\3\2") - buf.write("\2\2op\7^\2\2pq\n\5\2\2q\26\3\2\2\2rs\7^\2\2sy\7v\2\2") - buf.write("tu\7^\2\2uy\7t\2\2vw\7^\2\2wy\7p\2\2xr\3\2\2\2xt\3\2\2") - buf.write("\2xv\3\2\2\2y\30\3\2\2\2z{\7^\2\2{|\7=\2\2|\32\3\2\2\2") - buf.write("}\u0083\7$\2\2~\u0082\n\6\2\2\177\u0082\5\23\n\2\u0080") - buf.write("\u0082\5\35\17\2\u0081~\3\2\2\2\u0081\177\3\2\2\2\u0081") - buf.write("\u0080\3\2\2\2\u0082\u0085\3\2\2\2\u0083\u0081\3\2\2\2") - buf.write("\u0083\u0084\3\2\2\2\u0084\u0086\3\2\2\2\u0085\u0083\3") - buf.write("\2\2\2\u0086\u0087\7$\2\2\u0087\34\3\2\2\2\u0088\u008e") - buf.write("\7^\2\2\u0089\u008b\7\17\2\2\u008a\u008c\7\f\2\2\u008b") - buf.write("\u008a\3\2\2\2\u008b\u008c\3\2\2\2\u008c\u008f\3\2\2\2") - buf.write("\u008d\u008f\7\f\2\2\u008e\u0089\3\2\2\2\u008e\u008d\3") - buf.write("\2\2\2\u008f\36\3\2\2\2\u0090\u0091\7]\2\2\u0091\u0092") - buf.write("\5!\21\2\u0092\u0093\7_\2\2\u0093 \3\2\2\2\u0094\u0095") - buf.write("\7?\2\2\u0095\u0096\5!\21\2\u0096\u0097\7?\2\2\u0097\u00a1") - buf.write("\3\2\2\2\u0098\u009c\7]\2\2\u0099\u009b\13\2\2\2\u009a") - buf.write("\u0099\3\2\2\2\u009b\u009e\3\2\2\2\u009c\u009d\3\2\2\2") - buf.write("\u009c\u009a\3\2\2\2\u009d\u009f\3\2\2\2\u009e\u009c\3") - buf.write("\2\2\2\u009f\u00a1\7_\2\2\u00a0\u0094\3\2\2\2\u00a0\u0098") - buf.write("\3\2\2\2\u00a1\"\3\2\2\2\u00a2\u00a3\7%\2\2\u00a3\u00a4") - buf.write("\7]\2\2\u00a4\u00a5\3\2\2\2\u00a5\u00a6\5!\21\2\u00a6") - buf.write("\u00a7\7_\2\2\u00a7\u00a8\3\2\2\2\u00a8\u00a9\b\22\2\2") - buf.write("\u00a9$\3\2\2\2\u00aa\u00c8\7%\2\2\u00ab\u00c9\3\2\2\2") - buf.write("\u00ac\u00b0\7]\2\2\u00ad\u00af\7?\2\2\u00ae\u00ad\3\2") - buf.write("\2\2\u00af\u00b2\3\2\2\2\u00b0\u00ae\3\2\2\2\u00b0\u00b1") - buf.write("\3\2\2\2\u00b1\u00c9\3\2\2\2\u00b2\u00b0\3\2\2\2\u00b3") - buf.write("\u00b7\7]\2\2\u00b4\u00b6\7?\2\2\u00b5\u00b4\3\2\2\2\u00b6") - buf.write("\u00b9\3\2\2\2\u00b7\u00b5\3\2\2\2\u00b7\u00b8\3\2\2\2") - buf.write("\u00b8\u00ba\3\2\2\2\u00b9\u00b7\3\2\2\2\u00ba\u00be\n") - buf.write("\7\2\2\u00bb\u00bd\n\b\2\2\u00bc\u00bb\3\2\2\2\u00bd\u00c0") - buf.write("\3\2\2\2\u00be\u00bc\3\2\2\2\u00be\u00bf\3\2\2\2\u00bf") - buf.write("\u00c9\3\2\2\2\u00c0\u00be\3\2\2\2\u00c1\u00c5\n\t\2\2") - buf.write("\u00c2\u00c4\n\b\2\2\u00c3\u00c2\3\2\2\2\u00c4\u00c7\3") - buf.write("\2\2\2\u00c5\u00c3\3\2\2\2\u00c5\u00c6\3\2\2\2\u00c6\u00c9") - buf.write("\3\2\2\2\u00c7\u00c5\3\2\2\2\u00c8\u00ab\3\2\2\2\u00c8") - buf.write("\u00ac\3\2\2\2\u00c8\u00b3\3\2\2\2\u00c8\u00c1\3\2\2\2") - buf.write("\u00c9\u00cf\3\2\2\2\u00ca\u00cc\7\17\2\2\u00cb\u00cd") - buf.write("\7\f\2\2\u00cc\u00cb\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd") - buf.write("\u00d0\3\2\2\2\u00ce\u00d0\t\n\2\2\u00cf\u00ca\3\2\2\2") - buf.write("\u00cf\u00ce\3\2\2\2\u00d0\u00d1\3\2\2\2\u00d1\u00d2\b") - buf.write("\23\2\2\u00d2&\3\2\2\2\u00d3\u00d5\7\17\2\2\u00d4\u00d6") - buf.write("\7\f\2\2\u00d5\u00d4\3\2\2\2\u00d5\u00d6\3\2\2\2\u00d6") - buf.write("\u00d9\3\2\2\2\u00d7\u00d9\7\f\2\2\u00d8\u00d3\3\2\2\2") - buf.write("\u00d8\u00d7\3\2\2\2\u00d9\u00da\3\2\2\2\u00da\u00d8\3") - buf.write("\2\2\2\u00da\u00db\3\2\2\2\u00db\u00dc\3\2\2\2\u00dc\u00dd") - buf.write("\b\24\2\2\u00dd(\3\2\2\2\u00de\u00e0\t\13\2\2\u00df\u00de") - buf.write("\3\2\2\2\u00e0\u00e1\3\2\2\2\u00e1\u00df\3\2\2\2\u00e1") - buf.write("\u00e2\3\2\2\2\u00e2\u00e3\3\2\2\2\u00e3\u00e4\b\25\2") - buf.write("\2\u00e4*\3\2\2\2\36\2\61>CJOafhmx\u0081\u0083\u008b\u008e") - buf.write("\u009c\u00a0\u00b0\u00b7\u00be\u00c5\u00c8\u00cc\u00cf") - buf.write("\u00d5\u00d8\u00da\u00e1\3\b\2\2") - return buf.getvalue() - + return [ + 4,0,15,227,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, + 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2, + 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7, + 19,1,0,1,0,1,1,1,1,1,2,1,2,3,2,48,8,2,1,2,1,2,1,2,1,2,1,2,1,2,1, + 2,1,2,1,2,1,2,1,2,3,2,61,8,2,1,2,5,2,64,8,2,10,2,12,2,67,9,2,1,2, + 1,2,1,3,1,3,3,3,73,8,3,1,3,5,3,76,8,3,10,3,12,3,79,9,3,1,3,1,3,1, + 4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,6,1,6,5,6,94,8,6,10,6,12,6,97, + 9,6,1,7,1,7,4,7,101,8,7,11,7,12,7,102,1,8,1,8,1,8,3,8,108,8,8,1, + 9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,3,10,119,8,10,1,11,1,11, + 1,11,1,12,1,12,1,12,1,12,5,12,128,8,12,10,12,12,12,131,9,12,1,12, + 1,12,1,13,1,13,1,13,3,13,138,8,13,1,13,3,13,141,8,13,1,14,1,14,1, + 14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,5,15,153,8,15,10,15,12,15, + 156,9,15,1,15,3,15,159,8,15,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1, + 16,1,17,1,17,1,17,1,17,5,17,173,8,17,10,17,12,17,176,9,17,1,17,1, + 17,5,17,180,8,17,10,17,12,17,183,9,17,1,17,1,17,5,17,187,8,17,10, + 17,12,17,190,9,17,1,17,1,17,5,17,194,8,17,10,17,12,17,197,9,17,3, + 17,199,8,17,1,17,1,17,3,17,203,8,17,1,17,3,17,206,8,17,1,17,1,17, + 1,18,1,18,3,18,212,8,18,1,18,4,18,215,8,18,11,18,12,18,216,1,18, + 1,18,1,19,4,19,222,8,19,11,19,12,19,223,1,19,1,19,3,65,77,154,0, + 20,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,0,21,0,23,0,25,10, + 27,0,29,11,31,0,33,12,35,13,37,14,39,15,1,0,10,3,0,65,90,95,95,97, + 122,4,0,48,57,65,90,95,95,97,122,6,0,9,10,13,13,32,32,34,35,40,41, + 92,92,4,0,48,57,59,59,65,90,97,122,2,0,34,34,92,92,4,0,10,10,13, + 13,61,61,91,91,2,0,10,10,13,13,3,0,10,10,13,13,91,91,1,1,10,10,2, + 0,9,9,32,32,253,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0, + 0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0, + 0,25,1,0,0,0,0,29,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0, + 0,39,1,0,0,0,1,41,1,0,0,0,3,43,1,0,0,0,5,45,1,0,0,0,7,70,1,0,0,0, + 9,82,1,0,0,0,11,87,1,0,0,0,13,91,1,0,0,0,15,100,1,0,0,0,17,107,1, + 0,0,0,19,109,1,0,0,0,21,118,1,0,0,0,23,120,1,0,0,0,25,123,1,0,0, + 0,27,134,1,0,0,0,29,142,1,0,0,0,31,158,1,0,0,0,33,160,1,0,0,0,35, + 168,1,0,0,0,37,214,1,0,0,0,39,221,1,0,0,0,41,42,5,40,0,0,42,2,1, + 0,0,0,43,44,5,41,0,0,44,4,1,0,0,0,45,47,3,9,4,0,46,48,3,39,19,0, + 47,46,1,0,0,0,47,48,1,0,0,0,48,49,1,0,0,0,49,50,5,64,0,0,50,51,5, + 109,0,0,51,52,5,111,0,0,52,53,5,100,0,0,53,54,5,117,0,0,54,55,5, + 108,0,0,55,56,5,101,0,0,56,60,1,0,0,0,57,58,3,39,19,0,58,59,3,15, + 7,0,59,61,1,0,0,0,60,57,1,0,0,0,60,61,1,0,0,0,61,65,1,0,0,0,62,64, + 9,0,0,0,63,62,1,0,0,0,64,67,1,0,0,0,65,66,1,0,0,0,65,63,1,0,0,0, + 66,68,1,0,0,0,67,65,1,0,0,0,68,69,3,11,5,0,69,6,1,0,0,0,70,72,3, + 9,4,0,71,73,3,39,19,0,72,71,1,0,0,0,72,73,1,0,0,0,73,77,1,0,0,0, + 74,76,9,0,0,0,75,74,1,0,0,0,76,79,1,0,0,0,77,78,1,0,0,0,77,75,1, + 0,0,0,78,80,1,0,0,0,79,77,1,0,0,0,80,81,3,11,5,0,81,8,1,0,0,0,82, + 83,5,35,0,0,83,84,5,91,0,0,84,85,5,91,0,0,85,86,5,91,0,0,86,10,1, + 0,0,0,87,88,5,35,0,0,88,89,5,93,0,0,89,90,5,93,0,0,90,12,1,0,0,0, + 91,95,7,0,0,0,92,94,7,1,0,0,93,92,1,0,0,0,94,97,1,0,0,0,95,93,1, + 0,0,0,95,96,1,0,0,0,96,14,1,0,0,0,97,95,1,0,0,0,98,101,8,2,0,0,99, + 101,3,17,8,0,100,98,1,0,0,0,100,99,1,0,0,0,101,102,1,0,0,0,102,100, + 1,0,0,0,102,103,1,0,0,0,103,16,1,0,0,0,104,108,3,19,9,0,105,108, + 3,21,10,0,106,108,3,23,11,0,107,104,1,0,0,0,107,105,1,0,0,0,107, + 106,1,0,0,0,108,18,1,0,0,0,109,110,5,92,0,0,110,111,8,3,0,0,111, + 20,1,0,0,0,112,113,5,92,0,0,113,119,5,116,0,0,114,115,5,92,0,0,115, + 119,5,114,0,0,116,117,5,92,0,0,117,119,5,110,0,0,118,112,1,0,0,0, + 118,114,1,0,0,0,118,116,1,0,0,0,119,22,1,0,0,0,120,121,5,92,0,0, + 121,122,5,59,0,0,122,24,1,0,0,0,123,129,5,34,0,0,124,128,8,4,0,0, + 125,128,3,17,8,0,126,128,3,27,13,0,127,124,1,0,0,0,127,125,1,0,0, + 0,127,126,1,0,0,0,128,131,1,0,0,0,129,127,1,0,0,0,129,130,1,0,0, + 0,130,132,1,0,0,0,131,129,1,0,0,0,132,133,5,34,0,0,133,26,1,0,0, + 0,134,140,5,92,0,0,135,137,5,13,0,0,136,138,5,10,0,0,137,136,1,0, + 0,0,137,138,1,0,0,0,138,141,1,0,0,0,139,141,5,10,0,0,140,135,1,0, + 0,0,140,139,1,0,0,0,141,28,1,0,0,0,142,143,5,91,0,0,143,144,3,31, + 15,0,144,145,5,93,0,0,145,30,1,0,0,0,146,147,5,61,0,0,147,148,3, + 31,15,0,148,149,5,61,0,0,149,159,1,0,0,0,150,154,5,91,0,0,151,153, + 9,0,0,0,152,151,1,0,0,0,153,156,1,0,0,0,154,155,1,0,0,0,154,152, + 1,0,0,0,155,157,1,0,0,0,156,154,1,0,0,0,157,159,5,93,0,0,158,146, + 1,0,0,0,158,150,1,0,0,0,159,32,1,0,0,0,160,161,5,35,0,0,161,162, + 5,91,0,0,162,163,1,0,0,0,163,164,3,31,15,0,164,165,5,93,0,0,165, + 166,1,0,0,0,166,167,6,16,0,0,167,34,1,0,0,0,168,198,5,35,0,0,169, + 199,1,0,0,0,170,174,5,91,0,0,171,173,5,61,0,0,172,171,1,0,0,0,173, + 176,1,0,0,0,174,172,1,0,0,0,174,175,1,0,0,0,175,199,1,0,0,0,176, + 174,1,0,0,0,177,181,5,91,0,0,178,180,5,61,0,0,179,178,1,0,0,0,180, + 183,1,0,0,0,181,179,1,0,0,0,181,182,1,0,0,0,182,184,1,0,0,0,183, + 181,1,0,0,0,184,188,8,5,0,0,185,187,8,6,0,0,186,185,1,0,0,0,187, + 190,1,0,0,0,188,186,1,0,0,0,188,189,1,0,0,0,189,199,1,0,0,0,190, + 188,1,0,0,0,191,195,8,7,0,0,192,194,8,6,0,0,193,192,1,0,0,0,194, + 197,1,0,0,0,195,193,1,0,0,0,195,196,1,0,0,0,196,199,1,0,0,0,197, + 195,1,0,0,0,198,169,1,0,0,0,198,170,1,0,0,0,198,177,1,0,0,0,198, + 191,1,0,0,0,199,205,1,0,0,0,200,202,5,13,0,0,201,203,5,10,0,0,202, + 201,1,0,0,0,202,203,1,0,0,0,203,206,1,0,0,0,204,206,7,8,0,0,205, + 200,1,0,0,0,205,204,1,0,0,0,206,207,1,0,0,0,207,208,6,17,0,0,208, + 36,1,0,0,0,209,211,5,13,0,0,210,212,5,10,0,0,211,210,1,0,0,0,211, + 212,1,0,0,0,212,215,1,0,0,0,213,215,5,10,0,0,214,209,1,0,0,0,214, + 213,1,0,0,0,215,216,1,0,0,0,216,214,1,0,0,0,216,217,1,0,0,0,217, + 218,1,0,0,0,218,219,6,18,0,0,219,38,1,0,0,0,220,222,7,9,0,0,221, + 220,1,0,0,0,222,223,1,0,0,0,223,221,1,0,0,0,223,224,1,0,0,0,224, + 225,1,0,0,0,225,226,6,19,0,0,226,40,1,0,0,0,28,0,47,60,65,72,77, + 95,100,102,107,118,127,129,137,140,154,158,174,181,188,195,198,202, + 205,211,214,216,223,1,6,0,0 + ] class CMakeLexer(Lexer): @@ -158,7 +145,7 @@ class CMakeLexer(Lexer): def __init__(self, input=None, output:TextIO = sys.stdout): super().__init__(input, output) - self.checkVersion("4.7.2") + self.checkVersion("4.13.2") self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._actions = None self._predicates = None diff --git a/src/cminx/parser/CMakeListener.py b/src/cminx/parser/CMakeListener.py index 72874f9..3451867 100644 --- a/src/cminx/parser/CMakeListener.py +++ b/src/cminx/parser/CMakeListener.py @@ -1,6 +1,6 @@ -# Generated from CMake.g4 by ANTLR 4.7.2 +# Generated from ./src/cminx/parser/CMake.g4 by ANTLR 4.13.2 from antlr4 import * -if __name__ is not None and "." in __name__: +if "." in __name__: from .CMakeParser import CMakeParser else: from CMakeParser import CMakeParser @@ -71,3 +71,5 @@ def exitCompound_argument(self, ctx:CMakeParser.Compound_argumentContext): pass + +del CMakeParser \ No newline at end of file diff --git a/src/cminx/parser/CMakeParser.py b/src/cminx/parser/CMakeParser.py index 03516e0..15df78b 100644 --- a/src/cminx/parser/CMakeParser.py +++ b/src/cminx/parser/CMakeParser.py @@ -1,35 +1,34 @@ -# Generated from CMake.g4 by ANTLR 4.7.2 +# Generated from ./src/cminx/parser/CMake.g4 by ANTLR 4.13.2 # encoding: utf-8 from antlr4 import * from io import StringIO -from typing.io import TextIO import sys +if sys.version_info[1] > 5: + from typing import TextIO +else: + from typing.io import TextIO def serializedATN(): - with StringIO() as buf: - buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\21") - buf.write("<\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b") - buf.write("\t\b\3\2\5\2\22\n\2\3\2\3\2\3\2\7\2\27\n\2\f\2\16\2\32") - buf.write("\13\2\3\2\3\2\3\3\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\6") - buf.write("\3\6\7\6)\n\6\f\6\16\6,\13\6\3\6\3\6\3\7\3\7\3\b\3\b\3") - buf.write("\b\7\b\65\n\b\f\b\16\b8\13\b\3\b\3\b\3\b\2\2\t\2\4\6\b") - buf.write("\n\f\16\2\3\4\2\t\n\f\r\2<\2\21\3\2\2\2\4\35\3\2\2\2\6") - buf.write(" \3\2\2\2\b\"\3\2\2\2\n$\3\2\2\2\f/\3\2\2\2\16\61\3\2") - buf.write("\2\2\20\22\5\6\4\2\21\20\3\2\2\2\21\22\3\2\2\2\22\30\3") - buf.write("\2\2\2\23\27\5\4\3\2\24\27\5\n\6\2\25\27\5\b\5\2\26\23") - buf.write("\3\2\2\2\26\24\3\2\2\2\26\25\3\2\2\2\27\32\3\2\2\2\30") - buf.write("\26\3\2\2\2\30\31\3\2\2\2\31\33\3\2\2\2\32\30\3\2\2\2") - buf.write("\33\34\7\2\2\3\34\3\3\2\2\2\35\36\5\b\5\2\36\37\5\n\6") - buf.write("\2\37\5\3\2\2\2 !\7\5\2\2!\7\3\2\2\2\"#\7\6\2\2#\t\3\2") - buf.write("\2\2$%\7\t\2\2%*\7\3\2\2&)\5\f\7\2\')\5\16\b\2(&\3\2\2") - buf.write("\2(\'\3\2\2\2),\3\2\2\2*(\3\2\2\2*+\3\2\2\2+-\3\2\2\2") - buf.write(",*\3\2\2\2-.\7\4\2\2.\13\3\2\2\2/\60\t\2\2\2\60\r\3\2") - buf.write("\2\2\61\66\7\3\2\2\62\65\5\f\7\2\63\65\5\16\b\2\64\62") - buf.write("\3\2\2\2\64\63\3\2\2\2\658\3\2\2\2\66\64\3\2\2\2\66\67") - buf.write("\3\2\2\2\679\3\2\2\28\66\3\2\2\29:\7\4\2\2:\17\3\2\2\2") - buf.write("\t\21\26\30(*\64\66") - return buf.getvalue() - + return [ + 4,1,15,58,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7, + 6,1,0,3,0,16,8,0,1,0,1,0,1,0,5,0,21,8,0,10,0,12,0,24,9,0,1,0,1,0, + 1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,1,4,1,4,5,4,39,8,4,10,4,12,4, + 42,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,5,6,51,8,6,10,6,12,6,54,9,6,1, + 6,1,6,1,6,0,0,7,0,2,4,6,8,10,12,0,1,2,0,7,8,10,11,58,0,15,1,0,0, + 0,2,27,1,0,0,0,4,30,1,0,0,0,6,32,1,0,0,0,8,34,1,0,0,0,10,45,1,0, + 0,0,12,47,1,0,0,0,14,16,3,4,2,0,15,14,1,0,0,0,15,16,1,0,0,0,16,22, + 1,0,0,0,17,21,3,2,1,0,18,21,3,8,4,0,19,21,3,6,3,0,20,17,1,0,0,0, + 20,18,1,0,0,0,20,19,1,0,0,0,21,24,1,0,0,0,22,20,1,0,0,0,22,23,1, + 0,0,0,23,25,1,0,0,0,24,22,1,0,0,0,25,26,5,0,0,1,26,1,1,0,0,0,27, + 28,3,6,3,0,28,29,3,8,4,0,29,3,1,0,0,0,30,31,5,3,0,0,31,5,1,0,0,0, + 32,33,5,4,0,0,33,7,1,0,0,0,34,35,5,7,0,0,35,40,5,1,0,0,36,39,3,10, + 5,0,37,39,3,12,6,0,38,36,1,0,0,0,38,37,1,0,0,0,39,42,1,0,0,0,40, + 38,1,0,0,0,40,41,1,0,0,0,41,43,1,0,0,0,42,40,1,0,0,0,43,44,5,2,0, + 0,44,9,1,0,0,0,45,46,7,0,0,0,46,11,1,0,0,0,47,52,5,1,0,0,48,51,3, + 10,5,0,49,51,3,12,6,0,50,48,1,0,0,0,50,49,1,0,0,0,51,54,1,0,0,0, + 52,50,1,0,0,0,52,53,1,0,0,0,53,55,1,0,0,0,54,52,1,0,0,0,55,56,5, + 2,0,0,56,13,1,0,0,0,7,15,20,22,38,40,50,52 + ] class CMakeParser ( Parser ): @@ -81,13 +80,15 @@ class CMakeParser ( Parser ): def __init__(self, input:TokenStream, output:TextIO = sys.stdout): super().__init__(input, output) - self.checkVersion("4.7.2") + self.checkVersion("4.13.2") self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache) self._predicates = None + class Cmake_fileContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -145,7 +146,7 @@ def cmake_file(self): self.state = 15 self._errHandler.sync(self) _la = self._input.LA(1) - if _la==CMakeParser.Module_docstring: + if _la==3: self.state = 14 self.documented_module() @@ -153,7 +154,7 @@ def cmake_file(self): self.state = 22 self._errHandler.sync(self) _la = self._input.LA(1) - while _la==CMakeParser.Docstring or _la==CMakeParser.Identifier: + while _la==4 or _la==7: self.state = 20 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,1,self._ctx) @@ -187,7 +188,9 @@ def cmake_file(self): self.exitRule() return localctx + class Documented_commandContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -233,7 +236,9 @@ def documented_command(self): self.exitRule() return localctx + class Documented_moduleContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -272,7 +277,9 @@ def documented_module(self): self.exitRule() return localctx + class Bracket_doccommentContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -311,7 +318,9 @@ def bracket_doccomment(self): self.exitRule() return localctx + class Command_invocationContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -362,15 +371,15 @@ def command_invocation(self): self.state = 40 self._errHandler.sync(self) _la = self._input.LA(1) - while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CMakeParser.T__0) | (1 << CMakeParser.Identifier) | (1 << CMakeParser.Unquoted_argument) | (1 << CMakeParser.Quoted_argument) | (1 << CMakeParser.Bracket_argument))) != 0): + while (((_la) & ~0x3f) == 0 and ((1 << _la) & 3458) != 0): self.state = 38 self._errHandler.sync(self) token = self._input.LA(1) - if token in [CMakeParser.Identifier, CMakeParser.Unquoted_argument, CMakeParser.Quoted_argument, CMakeParser.Bracket_argument]: + if token in [7, 8, 10, 11]: self.state = 36 self.single_argument() pass - elif token in [CMakeParser.T__0]: + elif token in [1]: self.state = 37 self.compound_argument() pass @@ -391,7 +400,9 @@ def command_invocation(self): self.exitRule() return localctx + class Single_argumentContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -432,7 +443,7 @@ def single_argument(self): self.enterOuterAlt(localctx, 1) self.state = 45 _la = self._input.LA(1) - if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CMakeParser.Identifier) | (1 << CMakeParser.Unquoted_argument) | (1 << CMakeParser.Quoted_argument) | (1 << CMakeParser.Bracket_argument))) != 0)): + if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 3456) != 0)): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) @@ -445,7 +456,9 @@ def single_argument(self): self.exitRule() return localctx + class Compound_argumentContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -491,15 +504,15 @@ def compound_argument(self): self.state = 52 self._errHandler.sync(self) _la = self._input.LA(1) - while (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << CMakeParser.T__0) | (1 << CMakeParser.Identifier) | (1 << CMakeParser.Unquoted_argument) | (1 << CMakeParser.Quoted_argument) | (1 << CMakeParser.Bracket_argument))) != 0): + while (((_la) & ~0x3f) == 0 and ((1 << _la) & 3458) != 0): self.state = 50 self._errHandler.sync(self) token = self._input.LA(1) - if token in [CMakeParser.Identifier, CMakeParser.Unquoted_argument, CMakeParser.Quoted_argument, CMakeParser.Bracket_argument]: + if token in [7, 8, 10, 11]: self.state = 48 self.single_argument() pass - elif token in [CMakeParser.T__0]: + elif token in [1]: self.state = 49 self.compound_argument() pass