From 68d1091b7996d4e1b40fe43f4bcae2e7594ab806 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Nov 1994 13:50:46 -0200 Subject: no more unary '+' --- lua.stx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua.stx b/lua.stx index fc57aed5..6a793df9 100644 --- a/lua.stx +++ b/lua.stx @@ -1,6 +1,6 @@ %{ -char *rcs_luastx = "$Id: lua.stx,v 3.8 1994/11/17 19:09:46 roberto Exp roberto $"; +char *rcs_luastx = "$Id: lua.stx,v 3.9 1994/11/17 21:11:37 roberto Exp roberto $"; #include #include @@ -365,7 +365,6 @@ expr : '(' expr ')' { $$ = $2; } | expr1 '/' expr1 { code_byte(DIVOP); $$ = 1; } | expr1 '^' expr1 { code_byte(POWOP); $$ = 1; } | expr1 CONC expr1 { code_byte(CONCOP); $$ = 1; } - | '+' expr1 %prec UNARY { $$ = 1; } | '-' expr1 %prec UNARY { code_byte(MINUSOP); $$ = 1;} | table { $$ = 1; } | varexp { $$ = 1;} -- cgit v1.2.3-55-g6feb