What is parsing?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • maRIO5

    What is parsing?

    What it means parsing?
    Can you give me a practical example.
    --
    dk
  • Dave Miller

    #2
    Re: What is parsing?

    In article <bgp983$9r9$1@s unce.iskon.hr>, mario_zupan@ine t.hr says...[color=blue]
    > What it means parsing?
    > Can you give me a practical example.
    >[/color]
    To parse means to break down into smaller components (pieces) of the
    whole.

    Suppose you have a servlet that is passed a get request consisting of a
    string that reads "name=joe&game= tennis&fame=non e". You would parse the
    string to get name / value pairs("name = joe", "game = tennis", "fame =
    none").

    Comment

    • Govindan

      #3
      Re: What is parsing?


      "maRIO5" <mario_zupan@in et.hr> wrote in message
      news:bgp983$9r9 $1@sunce.iskon. hr...[color=blue]
      > What it means parsing?
      > Can you give me a practical example.
      > --
      > dk[/color]

      Parsing means identifying the special tokens from a given string and storing
      them for use later.
      For example, when a program is input into a compiler, the variables with
      special meaning (tokens)
      in the program are parsed .


      Comment

      Working...