Commit Graph

  • 96ea2e0fb4 fallback to unary minus is 'arith' with operation code 'unm' Roberto Ierusalimschy 1994-11-21 11:30:15 -02:00
  • 93ccdd52ef lua_lock receives its parameter via stack. beginblock and endblock do not have parameters Roberto Ierusalimschy 1994-11-18 17:46:21 -02:00
  • 333a4f13d0 lua_lock receives its parameter via stack Roberto Ierusalimschy 1994-11-18 17:46:21 -02:00
  • 73664eb739 function 'lua_createstring' moved from table.c to tree.c Roberto Ierusalimschy 1994-11-18 17:27:38 -02:00
  • feed56a01c small correction Roberto Ierusalimschy 1994-11-17 19:27:30 -02:00
  • 1929ddcf49 userdata can have different tags Roberto Ierusalimschy 1994-11-17 19:23:43 -02:00
  • aa4cd37adf small bug corrected Roberto Ierusalimschy 1994-11-17 19:11:37 -02:00
  • a84aa11f71 pow operation is defined in mathlib.c Roberto Ierusalimschy 1994-11-17 17:43:34 -02:00
  • 9bee23fd05 listing did not list POWOP Roberto Ierusalimschy 1994-11-17 17:09:46 -02:00
  • 3bd0f9e211 uses new memory module (mem.c). small changes in seting debug line. if and elseif unified in a outine 'codeIf' Roberto Ierusalimschy 1994-11-17 16:59:06 -02:00
  • 5406d391cd new API functions startblock and endblock Roberto Ierusalimschy 1994-11-17 14:41:42 -02:00
  • b234da1cc2 changes in garbage collection control Roberto Ierusalimschy 1994-11-17 11:58:57 -02:00
  • d6a1699e37 uses a single list to keep allocated strings. Roberto Ierusalimschy 1994-11-16 16:09:11 -02:00
  • a5862498a1 set first position of a free block to -1, to catch errors Roberto Ierusalimschy 1994-11-16 16:09:11 -02:00
  • 2b5bc5d1a8 new module for memory allocation Roberto Ierusalimschy 1994-11-16 15:39:16 -02:00
  • 94686ce585 correction of function 'nextvar' Roberto Ierusalimschy 1994-11-16 14:03:48 -02:00
  • 86b35cf4f6 unification of symbol tree and constant tree Roberto Ierusalimschy 1994-11-14 19:40:14 -02:00
  • 3b7a36653b lua_equalObj now is global (and is used by opcode) Roberto Ierusalimschy 1994-11-14 16:41:15 -02:00
  • e1d91fd0e1 new API function to create tables Roberto Ierusalimschy 1994-11-13 14:17:04 -02:00
  • 5e60b961de small changes to avoid shadowing Roberto Ierusalimschy 1994-11-13 12:54:18 -02:00
  • e4645c835d small changes in 'ugly' part. Roberto Ierusalimschy 1994-11-13 12:39:04 -02:00
  • 0c5ac77c99 small corrections to avoid 'warings' with acc. do_call was moving results in the wrong order. Roberto Ierusalimschy 1994-11-11 12:00:08 -02:00
  • b8996eaaba small corrections to avoid 'warings' with acc Roberto Ierusalimschy 1994-11-11 12:00:08 -02:00
  • ff7f769454 small changes in error recovery Roberto Ierusalimschy 1994-11-10 18:41:37 -02:00
  • 8a0521fa52 fallback for garbage collection Roberto Ierusalimschy 1994-11-10 15:36:54 -02:00
  • 9deac27704 fallback list moved from opcode.c to fallback.c Roberto Ierusalimschy 1994-11-10 15:11:52 -02:00
  • d531ccd082 execution of 'mains' separated from calls Roberto Ierusalimschy 1994-11-09 16:13:29 -02:00
  • df0cfc1e19 calls lua_reportbug instead of lua_error, in default fallbacks Roberto Ierusalimschy 1994-11-09 16:12:42 -02:00
  • 5f2d187b73 frees file names when unstacked Roberto Ierusalimschy 1994-11-09 16:11:47 -02:00
  • 6b387e01b2 lua_parse has a different interface Roberto Ierusalimschy 1994-11-09 16:10:58 -02:00
  • d0780fa16d lua_call cannot be a macro, because it would push the function over the parameters Roberto Ierusalimschy 1994-11-09 16:10:11 -02:00
  • fc0de64c2c lua_debugline is kept in the stack 'funcstack' when debugging. Roberto Ierusalimschy 1994-11-09 16:09:22 -02:00
  • b8bfa9628d because lua_error does a longjmp, there is no need to a variable 'err'. lua_parse has a different interface, to allow the free of the main block even if compilation fails. small changes in the debug system. Roberto Ierusalimschy 1994-11-09 16:07:38 -02:00
  • dabe09518f garbage collection for locked objects Roberto Ierusalimschy 1994-11-08 18:07:54 -02:00
  • 65f28f0824 error function for Lua Roberto Ierusalimschy 1994-11-08 18:06:15 -02:00
  • 2cf954b8ae lock mechanism Roberto Ierusalimschy 1994-11-08 17:56:39 -02:00
  • aa7b1fcec4 new API Roberto Ierusalimschy 1994-11-07 16:27:39 -02:00
  • d95a8b3121 new API: lua_Object now is an integer Roberto Ierusalimschy 1994-11-07 14:34:44 -02:00
  • 9ffba7a3db first implementation of 'fallbacks' Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • de4e2305c5 Type renamed to lua_Type Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • 63d300167e module to implement default fallbacks and lock mechanisms Roberto Ierusalimschy 1994-11-07 13:20:56 -02:00
  • 62ec3797d5 inheritance is not built-in Roberto Ierusalimschy 1994-11-07 13:19:51 -02:00
  • 0a5dce5704 new opcodes for '>' and '>=' Roberto Ierusalimschy 1994-11-06 13:35:04 -02:00
  • 8c22057b2e new global function 'setfallback' Roberto Ierusalimschy 1994-11-04 15:20:00 -02:00
  • 253655ae4b small corrections. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • c635044f2f creation of function do_protectedrun, that executes lua code enclosed in a setjmp, with error recovery. Elimination of functions lua_isnil, etc. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • 3db06a95a3 Elimination of functions lua_isnil, etc. Roberto Ierusalimschy 1994-11-04 08:47:49 -02:00
  • 31d58e2f01 more functions from opcode.c 'open_file' and 'open_string' return an error message lua_type renamed to luaI_type (I for Internal, as this function is not exported outside lua) Roberto Ierusalimschy 1994-11-03 20:34:29 -02:00
  • 42ef3f9388 there is no need of predefined constants. Roberto Ierusalimschy 1994-11-03 20:33:40 -02:00
  • 2651afc455 RESET is generated at codereturn. Roberto Ierusalimschy 1994-11-03 20:32:42 -02:00
  • 5cb6856ebc because lua_error now does a longjmp, many functions do not need to check conditions. Roberto Ierusalimschy 1994-11-03 20:20:15 -02:00
  • 852d9a8597 function 'lua_addfile' returns an error message Roberto Ierusalimschy 1994-11-03 19:48:36 -02:00
  • 6b18cc9a17 prototype for function 'yylex' Roberto Ierusalimschy 1994-11-03 15:09:20 -02:00
  • fbf887ec2b new way to call functions, plus several small changes. This is a temporary version! Roberto Ierusalimschy 1994-11-02 18:30:53 -02:00
  • ae77864844 tags T_NIL, etc, changed to LUA_T_NIL, etc some lua_ functions changed form opcode.c to here Roberto Ierusalimschy 1994-11-02 18:29:39 -02:00
  • 0162decc58 tags T_NIL, etc, changed to LUA_T_NIL, etc Roberto Ierusalimschy 1994-11-02 18:29:09 -02:00
  • ac68a3abc4 frees filename from file stack Roberto Ierusalimschy 1994-11-02 17:09:23 -02:00
  • f53460aab9 CREATEARRAY now has an argument, the size of the array to create. Roberto Ierusalimschy 1994-11-01 16:25:20 -02:00
  • 41e4c5798e small corrections Roberto Ierusalimschy 1994-11-01 15:54:31 -02:00
  • fb23cd2e26 deletion of 'include mm.h' Roberto Ierusalimschy 1994-10-21 17:00:12 -02:00
  • 2f1de3b1e1 implementacao das funcoes 'date', 'time' e 'beep'. troca de nome de 'abort' para 'exit' Waldemar Celes 1994-10-19 15:02:20 -02:00
  • 1a6536aaad deletion of 'include mm.h' Roberto Ierusalimschy 1994-10-18 16:34:47 -02:00
  • d7cb47fadf new parameter in function 'tree_create'. Maybe we will return to version 1.1 Waldemar Celes 1994-10-18 15:36:11 -02:00
  • f84abc6799 split to 'ugly.h'. Waldemar Celes 1994-10-18 15:34:34 -02:00
  • 3386e3c1fb definition of ugly tokens Waldemar Celes 1994-10-18 12:30:29 -02:00
  • 25010f8e09 remove of 'printf' for debuging. Roberto Ierusalimschy 1994-10-17 19:45:00 -02:00
  • 424db1db0c power operator (^). no more contructors (@). methods can be called on indexed variables. fixed debuging information. Waldemar Celes 1994-10-17 17:05:32 -02:00
  • e9049cbfc9 files end with EOF, instead of 0. Waldemar Celes 1994-10-17 17:04:19 -02:00
  • f8c8159362 adaptative garbage collection. Waldemar Celes 1994-10-17 17:03:23 -02:00
  • d1c5f42943 new algorithm for reading floats. files end with EOF, instead of 0. Waldemar Celes 1994-10-17 17:01:53 -02:00
  • ad07c0f638 new operations POWOP (power) and PUSHMARKMET (for marking method calls). remove of operation PUSHOBJECT. Waldemar Celes 1994-10-17 17:00:40 -02:00
  • fca10c6733 Aumentar buffer para saida. Waldemar Celes 1994-10-13 16:28:54 -03:00
  • 6bc68d4645 Acertar bug para evitar formato "%5.0s", por exemplo. Waldemar Celes 1994-10-13 14:18:32 -03:00
  • ceaaa0cca8 Correcao do tratamento de erro reportado dentro de uma funcao. Waldemar Celes 1994-10-11 11:38:17 -03:00
  • 82ceb12b7a Implementacao das funcoes para conversao de angulos rad r deg. Waldemar Celes 1994-10-11 10:06:47 -03:00
  • 87dded9363 Mudancas na sintaxe para a versao 2.0. Igual relacional passa a ser ==, tiramos o colchete na criacao de tabelas usando apenas chaves (podendo fazer inicializacao mista). O caracter @ so' deve estar presente quando se tem construtores associados. / Waldemar Celes 1994-10-11 10:02:39 -03:00
  • d107d5bfd2 implementacao de busca no campo godparent em substituicao ao campo parents. Waldemar Celes 1994-10-11 09:59:49 -03:00
  • d7d7b477bb consertar bug no formato real com zero casas decimais e implementar a funcao readuntil. Waldemar Celes 1994-10-07 19:47:05 -03:00
  • dc6d0dcc09 retirar especificador de formato %n da funcao ToReal e acertar funcao lua_convtonumber. Waldemar Celes 1994-09-27 18:43:30 -03:00
  • 7cfb5ff41f Mudancas para tornar lex.c um modulo independente dos outros modulos de Lua Waldemar Celes 1994-09-26 13:21:52 -03:00
  • 24c962de43 added support for ugly tokens Luiz Henrique de Figueiredo 1994-09-22 09:44:00 -03:00
  • 98d9509676 sai strtod, entra sscanf. permite conversao de numeros com espacos em volta. Waldemar Celes 1994-09-20 12:11:11 -03:00
  • 98263e2ef1 acertar bug no formato de string. Waldemar Celes 1994-09-12 16:24:31 -03:00
  • d2117d66ec default size for arrays is no more 101, as arrays now can grow. Waldemar Celes 1994-09-08 13:51:49 -03:00
  • 0dcae99d74 new field 'next' in struct 'Hash', to list tables for garbage collection. Waldemar Celes 1994-09-08 13:51:49 -03:00
  • b826a39919 Implementacao de heranca multipla. Waldemar Celes 1994-09-08 12:27:10 -03:00
  • 1ea0d09281 Alteracao do buffer de funcao de 32 para 64. Waldemar Celes 1994-09-05 18:22:43 -03:00
  • 3693f3f062 escapes \' e \" em strings; correcao do escape \\ Waldemar Celes 1994-09-05 16:14:40 -03:00
  • 0c6b906c8c Compatibilizacao com C++. Waldemar Celes 1994-08-24 12:29:02 -03:00
  • 9294a2787f nova funcao 'debug', para auxiliar debugacao de programas lua. Roberto Ierusalimschy 1994-08-17 19:34:20 -03:00
  • 0ec3a21451 inclui 'lua.h' que contem prototipos das funcoes 'lua_errorfunction' e 'lua_error'. Roberto Ierusalimschy 1994-08-17 19:22:44 -03:00
  • 0624540eef Implementacao da macro 'lua_strcmp' Waldemar Celes 1994-08-17 14:41:50 -03:00
  • a4eeb099c8 Alteracao na macro 'streq' Waldemar Celes 1994-08-17 14:41:23 -03:00
  • c364c7286f inclusao de 'lualib.h' para ter prototipos das funcoes de 'iolib_open' e 'strlib_open'. Waldemar Celes 1994-08-17 12:10:04 -03:00
  • 7c05266050 novas funcoes 'gettable' e 'pushtable'. Waldemar Celes 1994-08-17 12:05:08 -03:00
  • 592a949272 heranca e nova implementacao do hash. Waldemar Celes 1994-08-17 12:03:11 -03:00
  • c4b8b1b989 novas funcoes 'gettable' e 'pushtable', nova implementacao do hash e heranca nas indexacoes. Waldemar Celes 1994-08-17 12:02:03 -03:00
  • f490b1bff8 Implementacao das funcoes 'log', 'log10' e 'exp'. Waldemar Celes 1994-08-15 11:13:44 -03:00
  • 3921b43e44 Implementacao das funcoes 'getenv' e 'abort' Waldemar Celes 1994-08-11 20:11:57 -03:00
  • b28da81cfe Alteracao do hash, trocando tratamento de colisao por lista pela estrategia de re-hash. Foi feito uma avaliacao da funcao de hash, e constatado sua eficiencia com uma media de 4 acessos no hash ate' 70% ocupado. Waldemar Celes 1994-08-09 08:24:45 -03:00