(DPDA) and DCFLs | ||
Consider the language for some symbol G and G' are exactly same except that we introduce a new nonterminal $ and a new production Parsing and DPDA s The context-free languages are of great practical importance, especially, in defining programming languages. For example, we can use CFGs to model the syntax of arithmetic expressions, block structures in programming languages, etc. A compiler for such a programming language must then embody a parser to carry out the process of analyzing a given input string in order to determine its grammatical structure with respect to the given grammar. That is, a parser is an algorithm to determine whether a given string is in the language generated by a given CFG and, if so, to construct a purse tree for the string(for further use at a later stage). |
||