Renamed .cc to .ccl

This commit is contained in:
Sven Heidemann 2021-10-27 09:21:40 +02:00
parent ad10bc0357
commit f6642f834b
7 changed files with 4 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@ -22,7 +22,7 @@
"program": "cc_lang_interpreter/main.py",
"console": "integratedTerminal",
"args": [
"First.cc"
"First.ccl"
],
"env": {
"PYTHONPATH": "${workspaceFolder}/src/:${workspaceFolder}/venv/bin/python"

View File

@ -34,7 +34,7 @@ class Main:
self.__utils.runtime_error(Error(ErrorCodes.FileNotFound))
return
if not file.endswith('.cc'):
if not file.endswith('.ccl'):
self.__utils.runtime_error(Error(ErrorCodes.WrongFileType))
return

View File

@ -45,7 +45,7 @@ class Application(ApplicationABC):
# r=root, d=directories, f=files
for r, d, f in os.walk(self._path):
for file in f:
if file.endswith('.cc'):
if file.endswith('.ccl'):
self._read_file(os.path.join(r, file))
def _read_file(self, file: str):
@ -53,7 +53,7 @@ class Application(ApplicationABC):
raise FileNotFoundError
# self.__utils.runtime_error(Error(ErrorCodes.FileNotFound))
if not file.endswith('.cc'):
if not file.endswith('.ccl'):
raise Exception('Wrong file type')
# self.__utils.runtime_error(Error(ErrorCodes.WrongFileType))