-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels