Parsing
Parsing is the process of analyzing a sequence of symbols, often text, to determine its grammatical structure with respect to a formal grammar. In computer science, parsing converts input such as source code or data into a structured representation that can be further processed by a program, such as a parse tree or an abstract syntax tree (AST). A typical parser operates after lexical analysis, which tokenizes the input into a stream of symbols. The parser uses a grammar to decide whether the token sequence is valid and, when valid, to build a hierarchical tree that reveals the relationships among tokens.
There are two broad classes of parsing strategies: top-down parsers, such as recursive-descent parsers, and bottom-up
In natural language processing, parsing refers to determining the syntactic structure of sentences, producing constituency or
Key issues in parsing include ambiguity, error handling, and performance. Ambiguous grammars may permit multiple parses