[antlr-interest] comparing two parse trees

Jon Svede jsvede at yahoo.com
Tue Sep 14 12:29:28 PDT 2010


Hi,

I am new to ANTLR.

I want to be able to compare formulas to see if the are the same formula, something like the following:

(A + B / C)^D

Compared to

(W+X)/Y^Z

I don't particularly care about the actual terms of the equations (well, not right now anyway), I just want to know if they are structurally the same.

Can anyone point me in the right direction as far as docs that talk about this? Is this covered in the book "The Definitive Guide to ANTLR"?  I don't recall reading anything about this(or maybe I missed it?)...

Thanks in advance for any assistance!

Sincerely,

Jon



      



More information about the antlr-interest mailing list