[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swig-dev] Re: [Chicken-users] A more detailed plea for help with FF

From: William S Fulton
Subject: Re: [Swig-dev] Re: [Chicken-users] A more detailed plea for help with FFI...
Date: Thu, 16 Dec 2004 05:48:39 +0000
User-agent: Mozilla Thunderbird 0.9 (X11/20041104)

John Lenz wrote:
On 12/15/04 13:58:12, Ed Watkeys wrote:
While I have you here, I was wondering if there might be a way to use SWIG to generate Chicken procedure names with characters other than [0-9A-Za-z-] in them. Specifically, I'd like to stick some colon in the names e.g. "data-type:operation-name". Is there a way to do this in SWIG?

It should be possible with the %rename directive.

I just tried
%rename(a:b) func;
and SWIG gets Error: Syntax error in input.

To the SWIG devs, is there a way to get rename to accept colons?
the chicken validIdentifier function accepts : in names, but it
seems that parser.y is using idstring

line 1982: | rename_namewarn LPAREN idstring RPAREN string SEMI

%rename("a:b") func;

But you might have to deal with some invalid identifier warnings then.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]