Click here to Skip to main content
15,887,027 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Help, I can't drink my beer Pin
jschell17-Nov-23 5:54
jschell17-Nov-23 5:54 
GeneralRe: Help, I can't drink my beer Pin
Steve Raw17-Nov-23 12:27
professionalSteve Raw17-Nov-23 12:27 
GeneralRe: Help, I can't drink my beer Pin
jschell20-Nov-23 7:04
jschell20-Nov-23 7:04 
GeneralRe: Help, I can't drink my beer Pin
Roger Wright17-Nov-23 14:36
professionalRoger Wright17-Nov-23 14:36 
JokeRe: Help, I can't drink my beer Pin
Daniel Pfeffer18-Nov-23 5:19
professionalDaniel Pfeffer18-Nov-23 5:19 
GeneralRe: Help, I can't drink my beer Pin
Andre Oosthuizen18-Nov-23 7:55
mveAndre Oosthuizen18-Nov-23 7:55 
GeneralRe: Help, I can't drink my beer Pin
Andre Oosthuizen18-Nov-23 7:53
mveAndre Oosthuizen18-Nov-23 7:53 
QuestionIs there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch16-Nov-23 13:39
mvahoney the codewitch16-Nov-23 13:39 
This is going to sound funny, but I'm trying to update some old code to use my new regex DFA format and corresponding lexing code, so I have reasons.

My new code uses C# iterators rather than manually implementing IEnumerator

The problem is my lexer generator generates code in a language independent manner the same way ASP.NET does when it compiles pages - it uses the CodeDOM. The CodeDOM does not support iterators, so I have to implement the IEnumerator interface w/ corresponding state machine myself. I can do it, but I was hoping for something where I didn't have to. Smile | :)

Now, it's possible that I could run code compiled with iterators in it through a decompiler tool like Reflector, but the result is nasty and really hard to follow.

And this is kind of hard to google.

I was just curious if anyone had ever seen such a tool, or otherwise has any ideas.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

AnswerRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
Graeme_Grant16-Nov-23 16:05
mvaGraeme_Grant16-Nov-23 16:05 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch17-Nov-23 4:23
mvahoney the codewitch17-Nov-23 4:23 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
Gerry Schmitz17-Nov-23 11:11
mveGerry Schmitz17-Nov-23 11:11 
AnswerRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
Jörgen Andersson16-Nov-23 20:49
professionalJörgen Andersson16-Nov-23 20:49 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
PIEBALDconsult17-Nov-23 3:45
mvePIEBALDconsult17-Nov-23 3:45 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch17-Nov-23 4:20
mvahoney the codewitch17-Nov-23 4:20 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
PIEBALDconsult17-Nov-23 4:31
mvePIEBALDconsult17-Nov-23 4:31 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch17-Nov-23 4:33
mvahoney the codewitch17-Nov-23 4:33 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch17-Nov-23 4:18
mvahoney the codewitch17-Nov-23 4:18 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
Jörgen Andersson17-Nov-23 5:03
professionalJörgen Andersson17-Nov-23 5:03 
AnswerRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
jschell17-Nov-23 5:59
jschell17-Nov-23 5:59 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch17-Nov-23 6:11
mvahoney the codewitch17-Nov-23 6:11 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
jschell20-Nov-23 7:03
jschell20-Nov-23 7:03 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch20-Nov-23 7:04
mvahoney the codewitch20-Nov-23 7:04 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
jschell20-Nov-23 8:26
jschell20-Nov-23 8:26 
GeneralRe: Is there a tool out there for unraveling iterators and yield from C# code? Pin
honey the codewitch20-Nov-23 8:35
mvahoney the codewitch20-Nov-23 8:35 
GeneralAI coding goes visual Pin
Gary Stachelski 202116-Nov-23 13:37
Gary Stachelski 202116-Nov-23 13:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.