version 1.1, 2018/09/19 05:45:08 |
version 1.3, 2021/03/11 03:41:13 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM$ |
* $OpenXM: OpenXM_contrib2/asir2018/parse/parse.y,v 1.2 2019/08/21 00:37:47 noro Exp $ |
*/ |
*/ |
%{ |
%{ |
#define malloc(x) Risa_GC_malloc(x) |
#define malloc(x) Risa_GC_malloc(x) |
|
|
| LCASE '{' node '}' '(' node ')' |
| LCASE '{' node '}' '(' node ')' |
{ |
{ |
searchpf($1,(FUNC *)&val); |
searchpf($1,(FUNC *)&val); |
|
if ( val == 0 ) { |
|
fprintf(stderr,"%s : no such function.\n",$1); |
|
YYABORT; |
|
} |
$$ = mkfnode(3,I_PFDERIV,val,mkfnode(1,I_LIST,$6),mkfnode(1,I_LIST,$3)); |
$$ = mkfnode(3,I_PFDERIV,val,mkfnode(1,I_LIST,$6),mkfnode(1,I_LIST,$3)); |
} |
} |
| GETOPT '(' rawstr ')' |
| GETOPT '(' rawstr ')' |
|
|
| '<' node '>' |
| '<' node '>' |
{ $$ = mkfnode(1,I_EV,$2); } |
{ $$ = mkfnode(1,I_EV,$2); } |
| '<' node ':' expr '>' |
| '<' node ':' expr '>' |
{ |
{ $$ = mkfnode(2,I_EVM,$2,$4); } |
$$ = mkfnode(2,I_EVM,$2,$4); |
|
} |
|
| NEWSTRUCT '(' rawstr ')' |
| NEWSTRUCT '(' rawstr ')' |
{ $$ = mkfnode(1,I_NEWCOMP,(int)structtoindex($3)); } |
{ $$ = mkfnode(1,I_NEWCOMP,(int)structtoindex($3)); } |
| QUOTED '(' expr ')' |
| QUOTED '(' expr ')' |