Skip to content
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

Future compiler impl ideas #330

Open
gavr123456789 opened this issue Jan 13, 2025 · 0 comments
Open

Future compiler impl ideas #330

gavr123456789 opened this issue Jan 13, 2025 · 0 comments
Labels

Comments

@gavr123456789
Copy link
Owner

resolve in 2 steps, maybe.

  1. find all the types and methods in db
  2. typecheck everything, on top of that instead of AST
    ... not sure is it better

Новая архитектура нивы

  1. Все сайдэффекты отдельно
    Имеется Модуль СайдЕффектс который возвращает объект со всеми функциями содержащими сайдэффекты, он создается в мейне

  2. Модуль CLI
    Обрабатывает консольные аргументы

  3. Модуль SourceFiles
    Рекурсивно находит все сурс файлы для компиляции

  4. Модуль Фронтенд
    Лексер Парсер Резолвер, промежуточное состояние где все в функциях простых без унари байнари итд

  5. бекенд

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant