Added support for user-defined string literals.
Added testcase cpp0x_userdefined_literals.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c2f9904abe
commit
8a4efbc6d3
4 changed files with 53 additions and 2 deletions
|
|
@ -688,6 +688,11 @@ int yylex(void) {
|
|||
yylval.str = s;
|
||||
return OPERATOR;
|
||||
}
|
||||
} else if (nexttok == SWIG_TOKEN_STRING) {
|
||||
/* Operator "" or user-defined string literal ""_suffix */
|
||||
Append(s,"\"\"");
|
||||
yylval.str = s;
|
||||
return OPERATOR;
|
||||
} else if (nexttok == SWIG_TOKEN_ID) {
|
||||
/* We have an identifier. This could be any number of things. It could be a named version of
|
||||
an operator (e.g., 'and_eq') or it could be a conversion operator. To deal with this, we're
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue