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

Feature Request - Test Lexer Rules #430

Closed
nmz787 opened this issue Jan 13, 2021 · 4 comments
Closed

Feature Request - Test Lexer Rules #430

nmz787 opened this issue Jan 13, 2021 · 4 comments

Comments

@nmz787
Copy link

nmz787 commented Jan 13, 2021

Lexer rules can't be tested, but having them work correctly is fundamental to having a parser rule work.

I was able to code Python unit tests for the lexer rules, to aid in my development and debug:
https://gist.github.com/nmz787/cf98aa465a4d071a937cf74788687a54

but it was quite unexpected that the visual plugin couldn't do this.

@bjansen
Copy link
Collaborator

bjansen commented Jan 13, 2021

I think #417 is the same request as yours? If there was a new tab in the right part of the preview, showing the list of tokens that were lexed, would that be enough?

@bjansen
Copy link
Collaborator

bjansen commented Mar 4, 2021

@nmz787 is it something like this you're looking for? #417 (comment)

@bjansen
Copy link
Collaborator

bjansen commented Nov 2, 2021

Closing as duplicate of #417

@bjansen bjansen closed this as completed Nov 2, 2021
@nmz787
Copy link
Author

nmz787 commented Nov 29, 2021

I don't think #417 is the same thing. #417 wants to see tokens associated with a specific parser rule. This ticket (430) is about wanting lexer tokens, without having written a parser.

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

No branches or pull requests

2 participants