These guys are absolutely right. To take the example further, lets say you have this math expression:
when you parse this, it becomes
So parsing something really is about breaking it down into its individual chunks and pieces. For instance, a parser might break your c++ program into functions, or your word into letters. If you have a whole made of parts, the parser looks at those parts. Make sense? Check out the definitions linked above, they're probably better at explaining it than I am. Hope that helped a little.
PS The above is a "parse tree", certainly not the only way to parse or represent a parse. Just so you know.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||