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

Replace complex regex in Tokenize #55

Open
Roald87 opened this issue Apr 2, 2021 · 0 comments
Open

Replace complex regex in Tokenize #55

Roald87 opened this issue Apr 2, 2021 · 0 comments
Assignees
Labels
core Issues related to TcBlackCore enhancement New feature or request

Comments

@Roald87
Copy link
Owner

Roald87 commented Apr 2, 2021

Currently the VariableDeclaration.Tokenize() method in TcBlackCore has quite a complex regular expression to separate all the different components. For example to close #35 a two step regex was needed. It might be a better idea to replace the regex with a a finite state machine as also discussed here. Example of finite state machine.

@Roald87 Roald87 added enhancement New feature or request core Issues related to TcBlackCore labels Apr 2, 2021
@Roald87 Roald87 added this to the TcBlackCore v0.2.1 milestone May 23, 2021
@Roald87 Roald87 self-assigned this May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues related to TcBlackCore enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant