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

Storing tokens for bootstrapping #45

Open
HuseyinSimsek7904 opened this issue Feb 22, 2024 · 0 comments
Open

Storing tokens for bootstrapping #45

HuseyinSimsek7904 opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
compiler Anything about the compiler enhancement New feature or request high-priority

Comments

@HuseyinSimsek7904
Copy link
Member

HuseyinSimsek7904 commented Feb 22, 2024

When the compiler is bootstrapping, it has to regenerate all of the tokens each time it iterates. This could be avoided if the tokens were collected at first, then in each iteration the tokens were reused. This would improve the compilation time.

However, there should also be an option to make the compiler recreate the tokens every time. This is important because if the lexer was changed that would require the tokens to be recollected at every iteration which would otherwise create problems.

@HuseyinSimsek7904 HuseyinSimsek7904 added enhancement New feature or request high-priority compiler Anything about the compiler labels Feb 22, 2024
@HuseyinSimsek7904 HuseyinSimsek7904 self-assigned this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Anything about the compiler enhancement New feature or request high-priority
Projects
None yet
Development

No branches or pull requests

1 participant