Editing 1421: Future Self
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
A "{{w|Parsing#Parser|parse}} {{w|Subroutine|function}}" is code that interprets some form of input and makes sense of it in a way that enables functionality in some other part of the code. Parsers are commonly used to extract useful information from a source external to the algorithm. | A "{{w|Parsing#Parser|parse}} {{w|Subroutine|function}}" is code that interprets some form of input and makes sense of it in a way that enables functionality in some other part of the code. Parsers are commonly used to extract useful information from a source external to the algorithm. | ||
Often parsing functions are written using {{w|Regular expression|regular expressions}} or in some other {{w|write-only language}} style. Parsing can be a difficult problem to solve, and programmers will often take shortcuts (perform {{w|kludge|kludges}}) based on assumptions on the kinds of input that the parsing function will have to handle, or possibly code through means of trial-and-error. | Often parsing functions are written using {{w|Regular expression|regular expressions}} or in some other {{w|write-only language}} style. Parsing can be a difficult problem to solve, and programmers will often take shortcuts (perform {{w|kludge|kludges}}) based on assumptions on the kinds of input that the parsing function will have to handle, or possibly code through means of trial-and-error. | ||
β | As the programmer may not have control over the input, such as reading a page from someone else's web-site or using the output of an unpredictable program, an input that does not match the assumed input syntax in can cause the parser to break, even if the parsing function has not changed. | + | As the programmer may not have control over the input, such as reading a page from someone else's web-site or using the output of an unpredictable program, an input that does not match the assumed the input syntax in can cause the parser to break, even if the parsing function has not changed. |
==Transcript== | ==Transcript== |