[antlr-interest] book examples list

Edwards, Waverly Waverly.Edwards at genesys.com
Thu Aug 21 12:32:30 PDT 2008


That is exactly what I am referring to.
I think if structural equivalence is done
you have more work to do but by name you
probably have to look up names and their
aliases.  Maybe and alias (typedef) might
not be considered equivalent.

Interesting stuff.


W. 

-----Original Message-----
From: Johannes Luber [mailto:jaluber at gmx.de] 
Sent: Thursday, August 21, 2008 1:51 PM
To: Terence Parr
Cc: Edwards, Waverly; antlr ANTLR
Subject: Re: [antlr-interest] book examples list

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