|
|
Top-down parsingA compiler parses input from a programming language to assembly language or an internal representation by matching the incoming symbols to Backus-Naur form production rules. An LL parser, also called a top-bottom parser or top-down parser, applies each production rule to the incoming symbols by working from the left-most symbol yielded on a production rule and then proceeding to the next production rule for each non-terminal symbol encountered. In this way the parsing starts on the Left of the result side (right side) of the production rule and evaluates non-terminals from the Left first and, thus, proceeds down the parse tree for each new non-terminal before continuing to the next symbol for a production rule. e.g.
The common solution is to use an LR parser (a.k.a. bottom-up or shift-reduce parser). == See Also == * Recursive descent parser - another type of top down parser. Parsing algorithms Top-down parsingThe article is about LL parsers, but doesn't explain clearly what a top-down parser is. IMHO, it should be rewritten. See other meanings of words starting from letter: TTA | TB | TC | TD | TE | TF | TG | TH | TI | TJ | TK | TL | TŁ | TM | TN | TO | TP | TR | TS | TU | TW | TX | TY | TZ |Words begining with Top-down_parsing: Top-down_parsing Top-down_parsing Top-Down_Parsing_Language Top-down_parsing_language |
These materials are based on Wikipedia and licensed under the GNU FDL
YouTube.com videos better site than Turbo Tax 2007 |
|
|