Jelajahi Sumber

new syntax: f´s´ for f(´s´).

Roberto Ierusalimschy 28 tahun lalu
induk
melakukan
ce53872684
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      lua.stx

+ 2 - 1
lua.stx

@@ -1,6 +1,6 @@
 %{
 %{
 /*
 /*
-** $Id: lua.stx,v 1.26 1997/12/23 19:24:19 roberto Exp roberto $
+** $Id: lua.stx,v 1.27 1997/12/26 18:38:16 roberto Exp roberto $
 ** Syntax analizer and code generator
 ** Syntax analizer and code generator
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -828,6 +828,7 @@ funcvalue    : varexp { $$ = 0; }
 
 
 funcParams :	'(' exprlist ')' { $$ = adjust_functioncall($2, 1); }
 funcParams :	'(' exprlist ')' { $$ = adjust_functioncall($2, 1); }
 	|	table  { $$ = 1; }
 	|	table  { $$ = 1; }
+	|	STRING { code_string($1); $$ = 1; }
 	;
 	;
 
 
 exprlist  :	/* empty */		{ $$ = 0; }
 exprlist  :	/* empty */		{ $$ = 0; }