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

storing generators inside structs #39

Open
orhanbalci opened this issue Feb 9, 2024 · 0 comments
Open

storing generators inside structs #39

orhanbalci opened this issue Feb 9, 2024 · 0 comments

Comments

@orhanbalci
Copy link

Hi there. Is it possible to store generators as a field of a struct? I try to implement a parser state machine using generators. I need to perform operations whenever a specific pattern is parsed through a ParserListener trait. In order to consume input I would like to control this generator using an outer struct. Here is the link to related code I wrote. https://github.com/orhanbalci/memterm/blob/e5e4ed04cf288fa1c9590250210312281b34c648/src/parser.rs#L19C27-L19C37

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

1 participant