lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 68d1091b7996d4e1b40fe43f4bcae2e7594ab806
parent 52db68a600fbfbe1527250a114648da52a040247
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 22 Nov 1994 13:50:27 -0200

no more unary '+'

Diffstat:
Mlua.stx | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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 <stdio.h> #include <stdlib.h> @@ -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;}