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