Parse-Tree

  |
  |___program 
        |  \___ variant = 0
        |
        |___decllist 
        |     |  \___ variant = 0
        |     |
        |     |___decl 
        |           |  \___ variant = 0
        |           |
        |           |___identifier 
        |           |     |
        |           |     |___ x
        |           |
        |           |___identlist 
        |                 |  \___ variant = 0
        |                 |
        |                 |___identifier 
        |                       |
        |                       |___ y
        |
        |___stmtlist 
              |  \___ variant = 0
              |
              |___stmt 
              |     |  \___ variant = 2
              |     |
              |     |___lhs 
              |     |     |
              |     |     |___ y
              |     |
              |     |___expr 
              |           |  \___ variant = 1
              |           |
              |           |___constant 
              |                 |
              |                 |___ 10
              |
              |___stmt 
              |     |  \___ variant = 3
              |     |
              |     |___lhs 
              |           |
              |           |___ x
              |
              |___stmt 
              |     |  \___ variant = 5
              |     |
              |     |___expr 
              |           |  \___ variant = 0
              |           |
              |           |___identifier 
              |                 |
              |                 |___ x
              |
              |___stmt 
              |     |  \___ variant = 8
              |     |
              |     |___cond 
              |     |     |  \___ variant = 2
              |     |     |
              |     |     |___expr 
              |     |     |     |  \___ variant = 0
              |     |     |     |
              |     |     |     |___identifier 
              |     |     |           |
              |     |     |           |___ x
              |     |     |
              |     |     |___op 
              |     |     |     |
              |     |     |     |___ GEQ
              |     |     |
              |     |     |___expr 
              |     |           |  \___ variant = 1
              |     |           |
              |     |           |___constant 
              |     |                 |
              |     |                 |___ 0
              |     |
              |     |___stmt 
              |     |     |  \___ variant = 5
              |     |     |
              |     |     |___expr 
              |     |           |  \___ variant = 0
              |     |           |
              |     |           |___identifier 
              |     |                 |
              |     |                 |___ y
              |     |
              |     |___stmt 
              |           |  \___ variant = 5
              |           |
              |           |___expr 
              |                 |  \___ variant = 0
              |                 |
              |                 |___identifier 
              |                       |
              |                       |___ x
              |
              |___stmt 
                    |  \___ variant = 9
                    |
                    |___cond 
                    |     |  \___ variant = 2
                    |     |
                    |     |___expr 
                    |     |     |  \___ variant = 4
                    |     |     |
                    |     |     |___expr 
                    |     |     |     |  \___ variant = 1
                    |     |     |     |
                    |     |     |     |___constant 
                    |     |     |           |
                    |     |     |           |___ 1
                    |     |     |
                    |     |     |___op 
                    |     |     |     |
                    |     |     |     |___ SUB
                    |     |     |
                    |     |     |___expr 
                    |     |           |  \___ variant = 0
                    |     |           |
                    |     |           |___identifier 
                    |     |                 |
                    |     |                 |___ y
                    |     |
                    |     |___op 
                    |     |     |
                    |     |     |___ LEQ
                    |     |
                    |     |___expr 
                    |           |  \___ variant = 0
                    |           |
                    |           |___identifier 
                    |                 |
                    |                 |___ x
                    |
                    |___stmt 
                          |  \___ variant = 1
                          |
                          |___stmtlist 
                                |  \___ variant = 0
                                |
                                |___stmt 
                                      |  \___ variant = 2
                                      |
                                      |___lhs 
                                      |     |
                                      |     |___ y
                                      |
                                      |___expr 
                                            |  \___ variant = 4
                                            |
                                            |___expr 
                                            |     |  \___ variant = 0
                                            |     |
                                            |     |___identifier 
                                            |           |
                                            |           |___ x
                                            |
                                            |___op 
                                            |     |
                                            |     |___ MUL
                                            |
                                            |___expr 
                                                  |  \___ variant = 4
                                                  |
                                                  |___expr 
                                                  |     |  \___ variant = 0
                                                  |     |
                                                  |     |___identifier 
                                                  |           |
                                                  |           |___ y
                                                  |
                                                  |___op 
                                                  |     |
                                                  |     |___ ADD
                                                  |
                                                  |___expr 
                                                        |  \___ variant = 1
                                                        |
                                                        |___constant 
                                                              |
                                                              |___ 5