3 ms·
Well, yeah. I mean, that's straightforward enough, but what people frequently leave out is what "improve on that function" entails, especially when you start ge
by cweagans 12y ago
Well, yeah. I mean, that's straightforward enough, but what people frequently leave out is what "improve on that function" entails, especially when you start getting into really weird codebases.
Like I said, I understand the overall components - I need a lexer/parser to parse the code into a usable data structure that I can then examine to pull out information about that code. I also need some way for that parser to not puke if the syntax isn't perfect (for instance, if I'm typing in a line of code, that line of code isn't going to be syntactically perfect).
I've been a developer for a number of years now. I know how to learn stuff. The problem is that this particular problem is so nebulous and infrequently solved in a publicly viewable way that I don't even know what I don't know, hence the idea of looking at a guide for some simple, imaginary language. If I can see the basics without all of the eventual code rot and cruft, I can go from there. A sample implementation in pretty much any language would also be adequate - I can do without the prose.