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

Lexer testing #380

Merged
merged 4 commits into from
Sep 2, 2024
Merged

Lexer testing #380

merged 4 commits into from
Sep 2, 2024

Conversation

ftomassetti
Copy link
Member

While working on Code Insight Studio I encountered the need to test the generation of tokens.

I therefore created a utility method that can check that a list of tokens cover the entire input, without overlaps. It can also check that the text corresponds exactly to the text in the original code at the given position.

In implementing this I added a few methods to work with text and positions.

I also added a few Token Categories.

@ftomassetti ftomassetti changed the base branch from main to maintenance/kolasu15 August 30, 2024 07:34
@ftomassetti ftomassetti merged commit e0da29b into maintenance/kolasu15 Sep 2, 2024
4 checks passed
@ftomassetti ftomassetti deleted the feature/lexer-testing branch September 2, 2024 05:38
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.

2 participants