Information AboutBottom-up Parsing |
| CATEGORIES ABOUT BOTTOM-UP PARSING | |
| parsing algorithms | |
| SHOPPER'S DELIGHT | |
|
See Also: top-down parsing In Linguistics , an example of bottom-up parsing would be analyzing a Sentence by identifying words first, and then using properties of the words to infer Grammatical relations and Phrase Structures to build a Parse Tree of the complete sentence. In Programming Language compilers, bottom-up parsing is a parsing method that works by identifying Terminal symbols first, and combines them successively to produce Nonterminal s. The productions of the parser can be used to build a Parse Tree of a program written in human-readable Source Code that can be compiled to Assembly Language or Pseudocode . Different computer languages require different parsing techniques, although it is not uncommon to use a parsing technique that is more powerful than that actually required. It is common for bottom-up parsers to take the form of general parsing engines, that can either parse or generate a parser for a specific Programming Language given a specification of its grammar. Perhaps the most well known generalized parser generator is YACC . The common classes of bottom-up parsing are:
The Parser performs one of two actions (beside accept). These are "Shift" and "Reduce".
For example see figure 1. Figure 1.
|