Compilers

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • top down parsing

    0 answers - 1051 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Are binary trees used in top down parsers? If so, what do they use
    for insertion? A key? Something else? This is important because my
    tree api for a binary tree needs to make insertions as it goes down
    the call stack while parsing. In order for it to insert into a tree,
    it needs to find the proper place to insert. A key would not make
    sense here as it needs to be ordered. So then the question becomes: by
    what means do I locate, in my binary tree, the proper place for the
    insertion of a node? (this isn't a homework question by the way. I am
    self-taught, currently working through the dragon book and wanting to
    incorporate an explicit tree structure in my top-down parser to
    represent a given string of my language)
    Also, while on the subject of data structures used in parse trees.
    Are m-ary trees usually used over ordered trees? or the converse?
    Where the attraction to ordered trees might be no limit in the number
    of children. (i.e., just represent the children as a singly linked
    list).

Re: top down parsing


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Compilers"

EMSDN.COM