Why do we use HTML parsers?

Why do we use HTML parsers?

Comments

  • BrittanyBrittany Checkfront
    Hi Siddhi_Patel,

    Thank you for using Checkfront Forums!

    You may find the below link helpful in understanding reasons for HTML parsing.
    https://stackoverflow.com/questions/20421316/what-does-html-parsing-mean

    Wishing you a great day,
    Brittany
    Technical Support Specialist
    Checkfront | www.checkfront.com/contact | Email: support@checkfront.com
  • Hi Brittany.
    Thank you for helping me
    it is really helpful to understand and solve my doubt.
  • Parsing is basically to resolve (a sentence) into its component parts and describe their syntactic roles.

    According to Wikipedia, Parsing or syntactic analysis is the process of analyzing a string of symbols, either in natural language or in computer languages, according to the rules of a formal grammar. The term parsing comes from Latin pars (oration), meaning part (of speech).

    Parser:

    A computer program that parses content is called a parser. There are in general 2 kinds of parser:

    Top-down parsing- Top-down parsing can be viewed as an attempt to find left-most derivations of an input-stream by searching for parse trees using a top-down expansion of the given formal grammar rules. Tokens are consumed from left to right. Inclusive choice is used to accommodate ambiguity by expanding all alternative right-hand-sides of grammar rules.

    Bottom-up parsing - A parser can start with the input and attempt to rewrite it to the start symbol. Intuitively, the parser attempts to locate the most basic elements, then the elements containing these, and so on. LR parser are examples of bottom-up parser. Another term used for this type of parser is Shift-Reduce parsing.

Sign In or Register to comment.