[BACK]Return to yy_polymake.y CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / trans

Diff for /OpenXM/src/kan96xx/trans/yy_polymake.y between version 1.3 and 1.5

version 1.3, 2004/07/15 07:50:40 version 1.5, 2009/09/04 02:25:30
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/trans/yy_polymake.y,v 1.2 2004/04/08 01:49:04 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/trans/yy_polymake.y,v 1.4 2004/08/21 10:55:28 takayama Exp $ */
 /* yacc -d -b yy_polymake -p PM yy_polymake.y */  /* yacc -d -b yy_polymake -p PM yy_polymake.y */
 /* yacc -d -b yy_polymake -p PM yy_polymake.y ; gcc yylex_polymake.c  yy_polymake.tab.c*/  /* yacc -d -b yy_polymake -p PM yy_polymake.y ; gcc yylex_polymake.c  yy_polymake.tab.c*/
 %{  %{
Line 7 
Line 7 
 %}  %}
   
   
 %token PM_emptyLine PM_keyword PM_LCurryBrace PM_RCurryBrace PM_LAngle PM_RAngle PM_LBracket PM_RBracket PM_colon PM_LBrace PM_RBrace  %token PM_emptyLine PM_keyword PM_LCurryBrace PM_RCurryBrace PM_LAngle PM_RAngle PM_LBracket PM_RBracket PM_colon PM_LBrace PM_RBrace PM_eq
 %token PM_number PM_newline  %token PM_number PM_newline
   
 %%  %%
Line 101  dataUnit
Line 101  dataUnit
 | PM_LBrace dataUnitList PM_RBrace {  | PM_LBrace dataUnitList PM_RBrace {
   $$=pmAddChild($2,pmNewTreeObject("_tuple"));  /* tuple */    $$=pmAddChild($2,pmNewTreeObject("_tuple"));  /* tuple */
   /* printf("()");pmPrintObject(stdout,$2); */    /* printf("()");pmPrintObject(stdout,$2); */
   }
   | PM_LCurryBrace  PM_RCurryBrace {
     $$=pmNewTreeObject("_set");
   }
   | PM_LAngle PM_RAngle {
     $$=pmNewTreeObject("_pairs");
   }
   | PM_LBracket PM_RBracket {
     $$=pmNewTreeObject("_bracket");
   }
   | PM_LBrace PM_RBrace {
     $$=pmNewTreeObject("_tuple");
   }
   | PM_eq PM_eq PM_keyword PM_eq PM_eq {
     $$=pmNewTreeObjecto($3);
 }  }
 ;  ;
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>