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

Add MetalLexer class with tokenization functionality #261

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

huntermarchi
Copy link

Improves lexer performance by optimizing tokenization. This update refines the MetalLexer class and its token matching process for better efficiency.
This PR doesn’t directly fix an issue but addresses performance improvements.
closes #123

  • Optimized token matching in the MetalLexer class by refining the regex patterns.
  • Reduced unnecessary backtracking and improved processing speed for tokenization.
  • Refined handling of whitespace characters to skip them during tokenization.
  • Tested with a sample input string: "12 + 34 - 56", which produced correct tokenized output.
  • Manually verified performance improvements with larger input files.
  • No new automated tests were added, as the existing ones cover basic functionality.

@huntermarchi
Copy link
Author

solve the issue please check it

@huntermarchi
Copy link
Author

@NripeshN done and improved kindly see

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

Successfully merging this pull request may close these issues.

Add translator support for Const type qualifier token
1 participant