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: expose tokenizer in public API #203

Open
Harry-Chen opened this issue Oct 12, 2023 · 1 comment
Open

Feature request: expose tokenizer in public API #203

Harry-Chen opened this issue Oct 12, 2023 · 1 comment

Comments

@Harry-Chen
Copy link

This library has done a great job in VHDL handling with Rust.
However I found it impossible to run only lexical analysis with current public APIs provided by vhdl_lang.

Specifically, I would like to obtain a TokenStream from source files to run some plagiarism detection algorithms on. I expect this library to work in a similar way as verilog_lang does, as shown in https://github.com/jiegec/verilog-lang/blob/master/src/examples/lex.rs. Running only tokenizer not only saves time of parsing, but keeps the location information of each token (which our algorithm needs for visualization) as well.

Thanks!

@kraigher
Copy link
Member

You are welcome to make a PR.

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

No branches or pull requests

2 participants