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

feat: extract comments from source #161

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

DonIsaac
Copy link
Owner

What This PR Does

Extract comments (both doc comments and "normal" comments) from source code during tokinization pass. Comments will be used to extract disable directives in a later PR.

Changelog

  • refactor: move tokenize into separate file
  • feat: extract comments otherwise ignored by std.zig.Tokenizer during tokenization pass
  • perf: record number of .identifier tokens seen during tokenization pass and use it to pre-allocate memory for symbol table

@DonIsaac DonIsaac added C-enhancement Category - New feature or request A-semantic Area - semantic analysis labels Dec 19, 2024
@DonIsaac DonIsaac merged commit 2cbf99f into main Dec 19, 2024
10 checks passed
@DonIsaac DonIsaac deleted the don/feat/comments-and-tokens branch December 19, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-semantic Area - semantic analysis C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant