[antlr-interest] book examples list
Terence Parr
parrt at cs.usfca.edu
Thu Aug 21 10:59:32 PDT 2008
On Aug 21, 2008, at 10:50 AM, Johannes Luber wrote:
> 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.
Ah! Well,I probably won't get into that... this book will be
introductory/intermediate level. Most languages won't need to do that
equivalency.
Ter
More information about the antlr-interest
mailing list