4 ms·
I don't understand what you mean by parsing if not what the interpreter does. Can you give an example?
by elnate 13y ago
I don't understand what you mean by parsing if not what the interpreter does. Can you give an example?
- SoftwareMaven 13y agoPerl (and I assume Ruby from the comment) requires the running context of the interpreter to make decisions about how to interpret some code constructs. Because you need the running state, it is not parseable.
- lmm 13y agoParsing as in determining what constructs different lines represent, without running them. Imagine e.g. a documentation generator that needs to figure out what all your methods and parameters are, but not actually execute them (obviously there are many other use cases). A friend at an old job had a piece of perl code where one of the lines would be a comment or not when you ran it, depending on user input. He would bring it out whenever someone suggested writing something in perl.