Changeset 7b3094 in git for Singular/grammar.y
- Timestamp:
- Jan 11, 2000, 6:51:15 PM (24 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 3a62db15459fcfd405979f894c67de77e0ff1e84
- Parents:
- ba8c0bced42227f9c29f470c292a51ab29c2a405
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/grammar.y
rba8c0b r7b3094 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1.7 7 1999-12-21 11:44:01Singular Exp $ */4 /* $Id: grammar.y,v 1.78 2000-01-11 17:51:14 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik … … 288 288 289 289 %type <i> '=' '<' '>' '+' '-' COLONCOLON 290 %type <i> ' *' '/' '[' ']' '^' ',' ';'290 %type <i> '/' '[' ']' '^' ',' ';' 291 291 292 292 … … 295 295 %nonassoc '=' DOTDOT 296 296 %left ',' 297 %left ' |' '&'297 %left '&' 298 298 %left EQUAL_EQUAL NOTEQUAL 299 %left '<' '>' GE LE299 %left '<' 300 300 %left '+' '-' 301 %left ' *' '/' '%'301 %left '/' 302 302 %left UMINUS NOT 303 303 %left '^' … … 744 744 if(iiExprArith2(&$$,&$1,'-',&$3)) YYERROR; 745 745 } 746 | expr '*' expr747 {748 if(iiExprArith2(&$$,&$1,'*',&$3)) YYERROR;749 }750 746 | expr '/' expr 751 747 { … … 756 752 if(iiExprArith2(&$$,&$1,'^',&$3)) YYERROR; 757 753 } 758 | expr ' %' expr754 | expr '<' expr 759 755 { 760 756 if(iiExprArith2(&$$,&$1,$<i>2,&$3)) YYERROR; 761 757 } 762 | expr '>' expr763 {764 if(iiExprArith2(&$$,&$1,'>',&$3)) YYERROR;765 }766 | expr '<' expr767 {768 if(iiExprArith2(&$$,&$1,'<',&$3)) YYERROR;769 }770 758 | expr '&' expr 771 759 { 772 if(iiExprArith2(&$$,&$1,'&',&$3)) YYERROR; 773 } 774 | expr '|' expr 775 { 776 if(iiExprArith2(&$$,&$1,'|',&$3)) YYERROR; 760 if(iiExprArith2(&$$,&$1,$<i>2,&$3)) YYERROR; 777 761 } 778 762 | expr NOTEQUAL expr … … 783 767 { 784 768 if(iiExprArith2(&$$,&$1,EQUAL_EQUAL,&$3)) YYERROR; 785 }786 | expr GE expr787 {788 if(iiExprArith2(&$$,&$1,GE,&$3)) YYERROR;789 }790 | expr LE expr791 {792 if(iiExprArith2(&$$,&$1,LE,&$3)) YYERROR;793 769 } 794 770 | expr DOTDOT expr … … 1062 1038 filecmd: 1063 1039 '<' stringexpr 1064 { if((feFilePending=feFopen($2,"r",NULL,TRUE))==NULL) YYERROR; } 1040 { if ($<i>1 != '<') YYERROR; 1041 if((feFilePending=feFopen($2,"r",NULL,TRUE))==NULL) YYERROR; } 1065 1042 ';' 1066 1043 { newFile($2,feFilePending); }
Note: See TracChangeset
for help on using the changeset viewer.