Definition

A parser is a computer program designed to analyze a string of symbols and distinguish the content of the string. It is used to determine the syntactic structure of a piece of text, which can be a sentence, a program, or a natural language phrase.