aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-22 13:50:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-22 13:50:46 -0200
commit68d1091b7996d4e1b40fe43f4bcae2e7594ab806 (patch)
tree000a5e9de1b24cc0aed2601c11b1d3b9045e18ca
parent52db68a600fbfbe1527250a114648da52a040247 (diff)
downloadlua-68d1091b7996d4e1b40fe43f4bcae2e7594ab806.tar.gz
lua-68d1091b7996d4e1b40fe43f4bcae2e7594ab806.tar.bz2
lua-68d1091b7996d4e1b40fe43f4bcae2e7594ab806.zip
no more unary '+'
-rw-r--r--lua.stx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua.stx b/lua.stx
index fc57aed5..6a793df9 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 3.8 1994/11/17 19:09:46 roberto Exp roberto $"; 3char *rcs_luastx = "$Id: lua.stx,v 3.9 1994/11/17 21:11:37 roberto Exp roberto $";
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
@@ -365,7 +365,6 @@ expr : '(' expr ')' { $$ = $2; }
365 | expr1 '/' expr1 { code_byte(DIVOP); $$ = 1; } 365 | expr1 '/' expr1 { code_byte(DIVOP); $$ = 1; }
366 | expr1 '^' expr1 { code_byte(POWOP); $$ = 1; } 366 | expr1 '^' expr1 { code_byte(POWOP); $$ = 1; }
367 | expr1 CONC expr1 { code_byte(CONCOP); $$ = 1; } 367 | expr1 CONC expr1 { code_byte(CONCOP); $$ = 1; }
368 | '+' expr1 %prec UNARY { $$ = 1; }
369 | '-' expr1 %prec UNARY { code_byte(MINUSOP); $$ = 1;} 368 | '-' expr1 %prec UNARY { code_byte(MINUSOP); $$ = 1;}
370 | table { $$ = 1; } 369 | table { $$ = 1; }
371 | varexp { $$ = 1;} 370 | varexp { $$ = 1;}