|
I was wondering if you could confirm what it means to convert between abstract syntax trees and pre/in/post/mixfix forms. In our first assignment, we drew abstract syntax trees, but only wrote out linear representations of pre/in/post/mixfix expressions. So, is this the idea of conversion; taking an expression written in say, prefix form, and then drawing its abstract syntax tree? Also, you mention that we need to know what the relationship is between the evaluation code and abstract syntax trees. Does this mean the sequence of operations that would be performed by the machine in assembly language to perform the math that is represented by the abstract syntax?
|
Given one form, produce another by Mike O'Donnell, 2000, Nov 02
to: