From 3f4edd9c7d2c0eb5062e65b33a9ee7cb09e5036d Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Thu, 15 Feb 2024 13:23:14 +0100 Subject: [PATCH] Rename `parser.py` to `language_parser.py` This is to avoid confusion with the built-in `parser` module (removed since Python 3.10). --- src/language/code_generator.cmake | 2 +- src/language/code_generator.py | 2 +- src/language/{parser.py => language_parser.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/language/{parser.py => language_parser.py} (100%) diff --git a/src/language/code_generator.cmake b/src/language/code_generator.cmake index 90705ac3df..0c6ccae181 100644 --- a/src/language/code_generator.cmake +++ b/src/language/code_generator.cmake @@ -36,7 +36,7 @@ set(CODE_GENERATOR_PY_FILES ${PROJECT_SOURCE_DIR}/src/language/code_generator.py ${PROJECT_SOURCE_DIR}/src/language/node_info.py ${PROJECT_SOURCE_DIR}/src/language/nodes.py - ${PROJECT_SOURCE_DIR}/src/language/parser.py + ${PROJECT_SOURCE_DIR}/src/language/language_parser.py ${PROJECT_SOURCE_DIR}/src/language/utils.py ) diff --git a/src/language/code_generator.py b/src/language/code_generator.py index 63fa9743dd..f2d09ae49a 100644 --- a/src/language/code_generator.py +++ b/src/language/code_generator.py @@ -18,7 +18,7 @@ import jinja2 -from parser import LanguageParser +from language_parser import LanguageParser import node_info import utils diff --git a/src/language/parser.py b/src/language/language_parser.py similarity index 100% rename from src/language/parser.py rename to src/language/language_parser.py