-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Удалил старую реализацию Context В процессе пререхода на новую версию интерпретатора: - Сделал новую версию Data comprehensions - Реализация синтаксическго анализатора ...
- Loading branch information
Showing
45 changed files
with
10,487 additions
and
10,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
[submodule "contrib/googletest"] | ||
path = contrib/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "contrib/Lyra"] | ||
path = contrib/Lyra | ||
url = https://github.com/bfgroup/Lyra.git | ||
[submodule "contrib/tensorboard_logger"] | ||
path = contrib/tensorboard_logger | ||
url = https://github.com/RustingSword/tensorboard_logger.git | ||
[submodule "contrib/text2cpp"] | ||
path = contrib/text2cpp | ||
url = https://github.com/lostjared/text2cpp.git |
Submodule backup
deleted from
2bc114
Submodule Lyra
deleted from
15a82f
Submodule tensorboard_logger
deleted from
11d2b4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Реализация обработки ошибок и прерываний | ||
weight: 30 | ||
--- | ||
|
||
Для обработки [перываний потока выполения](/ru/docs/ops/throw/), а также для обработки ошибкок компилятора | ||
используются С++ классы - наследники от std::exception, которые возвращают объект ошибки (значение). | ||
|
||
|
||
Ошибка компилятора возвращает не только тестовое описание, но и объект TermPtr, при обработке которого возникла ошибка, | ||
тогда как перывание потока выполения возвращается объект ObjPtr. | ||
``` | ||
std::exception -+-> :ParserError | ||
| (TermPtr) | ||
| | ||
+-> :RuntimeError ----> :IntAny --+-> :IntPlus | ||
(ObjPtr) | | ||
| | ||
+-> :IntMinus | ||
``` | ||
|
||
**При выполнении (генерации кода) именованные прерывания могут быть реализованы без использования исключений!** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.