Hello Fernando.
05 Apr 98 01:57, Fernando Ariel Gont wrote to John Stephenson:
JS>> I'm coming to the realization that I have to build sophisticated
JS>> parse trees and although I still can make it single pass, it will
FG> What is a "parse tree"?
Do you know something about programming records that refer to two or more
other
records of the same type? These structures are used to determine in which
direction parameters should be interpreted.
For instance 2+3*5 should be interpreted as 2 + (3*5) = 17 instead of (2 +
3)*5
= 25.
The parsing tree for solution 1 (the good one) is
+
/ \
2 *
/ \
3 5
The parsing tree for solution 2 (the bad one) is
*
/ \
+ 5
/ \
2 3
Sorry Fernando, but these are basics you should know. One more advice, try to
concentrate on one topic instead of trying to handle them all at once.
Jos
--- GoldED 2.50+
---------------
* Origin: (2:500/19)
|