Parsing
In grammar and linguistics, parsing is the process by which a person makes sense of a sentence, usually by breaking it down into words or phrases. Parsing used to be taught as a formal activity in schools as part of language education. Parsing is also used, usually with negative connotation, to describe the over-analysis of a person's remarks, or a portion thereof, for the purpose of discerning meaning which was not intended. It may also refer to a close inspection of a statement to separate its literal meaning from the initial impression it conveys. (For example, former U.S. President Bill Clinton was frequently accused of making statements that required careful parsing, in an attempt to avoid technical or legal untruth while still implying a desired meaning.) ----------- In computer science, parsing is the process of splitting up a continuous stream of characters (read from a file or keyboard input, for example) into meaningful tokens, and then building a parse tree from those tokens. The name is by analogy with the usage in grammar and linguistics. There are two primary ways to parse a stream:
- Top-down parsing - a parse tree is constructed starting from the top and deriving down
- Bottom-up parsing - a parse tree is constructed starting from the bottom and reducing up
- (3+4)^2" and split it into the tokens 12, *, (, 3, +, 4, ), ^ and 2, each of which is a meaningful symbol in the context of an arithmetic expression. The parser would contain rules to tell it that the characters *, +, ^, ( and ) mark the start of a new token, so meaningless tokens like "12*" or "(3" will not be generated.
arsing
Prsing
Pasing
Paring
Parsng
Parsig
Parsin
aPrsing
Prasing
Pasring
Parisng
Parsnig
Parsign
Parsin
PParsing
Paarsing
Parrsing
Parssing
Parsiing
Parsinng
Parsingg
arsing
prsing
pasing
paring
parsng
parsig
parsin
aprsing
prasing
pasring
parisng
parsnig
parsign
parsin
pparsing
paarsing
parrsing
parssing
parsiing
parsinng
parsingg