=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/parse.y,v retrieving revision 1.28 retrieving revision 1.29 diff -u -p -r1.28 -r1.29 --- OpenXM_contrib2/asir2000/parse/parse.y 2005/08/24 06:28:39 1.28 +++ OpenXM_contrib2/asir2000/parse/parse.y 2005/09/13 06:40:46 1.29 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/parse/parse.y,v 1.27 2005/07/27 04:35:11 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/parse.y,v 1.28 2005/08/24 06:28:39 noro Exp $ */ %{ #define malloc(x) GC_malloc(x) @@ -92,6 +92,7 @@ extern jmp_buf env; %token STRUCT POINT NEWSTRUCT ANS FDEF PFDEF MODDEF MODEND %token GLOBAL MGLOBAL LOCAL LOCALF CMP OR AND CAR CDR QUOTED COLONCOLON %token DO WHILE FOR IF ELSE BREAK RETURN CONTINUE PARIF MAP RECMAP TIMER GF2NGEN GFPNGEN GFSNGEN GETOPT +%token UNIFY %token FOP_AND FOP_OR FOP_IMPL FOP_REPL FOP_EQUIV FOP_NOT LOP %token
FORMULA UCASE LCASE STR SELF BOPASS %token
'+' '-' '*' '/' '^' '%' @@ -305,6 +306,10 @@ pexpr : STR gen_searchf($3,(FUNC *)&val); print_crossref(val); $$ = mkfnode(2,I_RECMAP,val,mkfnode(1,I_LIST,$5)); + } + | UNIFY '(' expr ',' expr ')' + { + $$ = mkfnode(2,I_UNIFY,$3,$5); } | LCASE '{' node '}' '(' node ')' {