On Sep 4, 2006, at 6:59 AM, skaller wrote:

> On Sun, 2006-09-03 at 19:37 -0400, Peter Tanski wrote:
>
>> ---------------------
>> typedef typecase[clst] C clst => clst
>>              endcase a1 = company;
>
>> I get an "unknown" parser error.
>
> You have the typedef syntax backwards:
>
> typedef company = typecase[clst] C clst => clst endcase;
>
> Also you'd get an error on 'a1' here .. what is 'a1'?

I was basing my typedef on your definition:

typedef fun ite(b:TYPE, s:TYPE, r:TYPE): TYPE =>
   typecase [] True =>
     typecase [x] x => s endcase
   endcase
   b r
;

which seems to have the same format as the C/C++ keyword typedef;  I  
did not realise you use typedef in two different ways (depending on  
context): the OCaml way and the C/C++ synonym-way.  Neither seems to  
be defined in the documentation.

As for the 'a1', I was following your definition for typecase:

> typecase [v1, v2, ..] pattern => result endcase argument

from the message you sent on Friday, 01 Sept.

-Pete

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to