Imported from ../lua-1.1.tar.gz.
[lua.git] / clients / lua / lua.c
blobc4b83cee90e7afb158cbf3ed2b9528eb2b3300b0
1 /*
2 ** lua.c
3 ** Linguagem para Usuarios de Aplicacao
4 */
6 char *rcs_lua="$Id: lua.c,v 1.1 1993/12/17 18:41:19 celes Exp $";
8 #include <stdio.h>
10 #include "lua.h"
11 #include "lualib.h"
13 void main (int argc, char *argv[])
15 int i;
16 iolib_open ();
17 strlib_open ();
18 mathlib_open ();
19 if (argc < 2)
21 char buffer[2048];
22 while (gets(buffer) != 0)
23 lua_dostring(buffer);
25 else
26 for (i=1; i<argc; i++)
27 lua_dofile (argv[i]);