Tree building

"Jad Saklawi" <jad.saklawi@gmail.com>
11 Dec 2006 16:12:24 -0500

          From comp.compilers

Related articles
Tree building jad.saklawi@gmail.com (Jad Saklawi) (2006-12-11)
| List of all articles for this month |

From: "Jad Saklawi" <jad.saklawi@gmail.com>
Newsgroups: comp.compilers
Date: 11 Dec 2006 16:12:24 -0500
Organization: Compilers Central
Keywords: parse, question, comment

Hello,




        I am implementing a program that deals with CTL (computation tree
logic). I want to build a tree from expression.


Example :


            - Assume langauge is arithmatic
            - Expression is : 1 + 1
            - Desired tree :


                        +
                      / \
                    1 1


        Is this the parse tree ? If so which type. I need to narrow my
search. Any suggested libraries/documentation ?




        Thanks in advance.


--
Jad
[Yes, it's the parse tree, or maybe the similar abstract syntax tree
(AST). This is covered in Chapter 1 of just about every compiler text
ever written. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.