[antlr-interest] book examples list

Johannes Luber jaluber at gmx.de
Thu Aug 21 10:50:56 PDT 2008


Terence Parr schrieb:
> On Aug 21, 2008, at 8:50 AM, Edwards, Waverly wrote:
>> type equivalency (name vs. structural)
> 
> what do you mean? can yougive me an example?

I believe Edwards means that one can have the following two structs:

struct A {
int i;
char c;
};

struct B {
int i;
char c;
};

struct A a;
struct B b;

Under name equivalency a and b can't be compared because they are of
different types, but under structural they can.

Johannes


More information about the antlr-interest mailing list