-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Проблема с глобальной оптимизацией и detached $ENTRY #302
Labels
Comments
Mazdaywik
added a commit
that referenced
this issue
Jul 4, 2020
Ошибка была выявлена в ходе исправления ошибки #302. Вообще, этот проход рассахаривателя (Pass-AttachEntries) стоит переписать.
Mazdaywik
added a commit
that referenced
this issue
Jul 4, 2020
Mazdaywik
added a commit
that referenced
this issue
Jul 4, 2020
Ошибка исправлена. Попутно была обнаружена другая ошибка, и она тоже исправлена. |
Mazdaywik
added a commit
that referenced
this issue
Jul 4, 2020
Проход Pass-AttachEntries, как оказалось, также удалял маркер области видимости у узлов дерева (Drive …), (Inline …) и (Intrinsic …), что было не очевидно. Предыдущий коммит потерял эту логику.
12 tasks
Mazdaywik
added a commit
that referenced
this issue
Nov 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Воспроизведение проблемы
Файл
main.ref
:Файл
lib.ref
:(причём можно закомментировать любую из двух
$ENTRY
, проблема сохраняется)Компиляция:
D:\Mazdaywik\Documents\Refal-5-lambda\build>call ..\bin\rlc main.ref lib.ref -OG --log=log.txt *Parsing main.ref... *Parsing lib.ref... *Generating code... ** Compilation succeeded **
Запуск:
D:\Mazdaywik\Documents\Refal-5-lambda\build>main.exe INTERNAL ERROR: unresolved external: Entry#0:0
Без ключа -OG всё работает:
В логе наблюдается такой нонсенс:
Для синтаксиса detached
$ENTRY
почему-то суффикс приписывается к entry-функции.The text was updated successfully, but these errors were encountered: