Leonardo de Moura
|
ae7ea99b56
|
fix(lua): copy_values and add tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-13 21:31:27 -08:00 |
|
Leonardo de Moura
|
ed3cf8152b
|
feat(lua): add for_each to expr Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-13 16:30:59 -08:00 |
|
Leonardo de Moura
|
b5f0185729
|
fix(lua): replace lua_pushfstring with lua_pushstring
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-13 12:14:55 -08:00 |
|
Leonardo de Moura
|
450128e28b
|
refactor(lua): cleanup Lua bindings, and add accessor/tester to expr Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-13 11:46:09 -08:00 |
|
Leonardo de Moura
|
be093ecf90
|
feat(lua): use formatter available in the state object to convert Lean objects into strings in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-12 16:56:30 -08:00 |
|
Leonardo de Moura
|
8190d4fed5
|
feat(lua): allow Lua scripts to update 'global' options
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-12 15:38:00 -08:00 |
|
Leonardo de Moura
|
b986af09ed
|
feat(lua): add support for copying closures between Lua states
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-12 12:54:34 -08:00 |
|
Leonardo de Moura
|
2af2a69fc6
|
feat(lua): expose kernel objects in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-12 09:40:29 -08:00 |
|
Leonardo de Moura
|
d257156b88
|
fix(lua): memory leaks, we should not use luaL_error because it does not unwind C++ stack
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 21:45:13 -08:00 |
|
Leonardo de Moura
|
a30e02d862
|
fix(lua): redefine Lua 'print' function, and make sure it is thread safe
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 21:15:21 -08:00 |
|
Leonardo de Moura
|
0af8f17834
|
feat(lua): allow Booleans to be copied between Lua states
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 20:39:46 -08:00 |
|
Leonardo de Moura
|
7cb15cdac5
|
feat(lua): allow environment object references to be moved between Lua states
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 20:32:36 -08:00 |
|
Leonardo de Moura
|
cc7b5b7e50
|
fix(lua): disable custom allocation for Lua, it is crashing
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 18:20:52 -08:00 |
|
Leonardo de Moura
|
69b41eae70
|
feat(lua): add support for multiple execution threads in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 16:25:17 -08:00 |
|
Leonardo de Moura
|
95785c7aaa
|
feat(lua): add State objects, it allows us to create several Lua State objects in a lua script
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-11 15:05:50 -08:00 |
|
Leonardo de Moura
|
8c140ff86f
|
feat(lua): allow lua scripts (embedded in Lean files) to access the environment
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-10 11:14:04 -08:00 |
|
Leonardo de Moura
|
9d61fcf85b
|
feat(lua): expose environment objects in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-10 11:14:04 -08:00 |
|
Leonardo de Moura
|
554defe89d
|
feat(lua): expose local_context objects in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-09 12:18:46 -08:00 |
|
Leonardo de Moura
|
ad2de3b53c
|
feat(lua): expose level objects in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-08 17:08:24 -08:00 |
|
Leonardo de Moura
|
32605d8266
|
feat(lua): expose level objects in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-08 15:38:00 -08:00 |
|
Leonardo de Moura
|
bbab454b6c
|
fix(lua): cpplint.py does not like multiline strings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-08 13:27:20 -08:00 |
|
Leonardo de Moura
|
b7d8391306
|
refactor(lua): remove duplicate code, separate lua_exception, add missing #pragma once
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-08 11:59:47 -08:00 |
|
Leonardo de Moura
|
c8b0c10c88
|
refactor(lua): make Lua a required (non-optional) package
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-08 10:56:29 -08:00 |
|
Leonardo de Moura
|
b57ad80d5e
|
feat(lua): expose basic API for Lean expressions in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 21:54:57 -08:00 |
|
Leonardo de Moura
|
db8b16641c
|
chore(build): check if the Lua installed in the system supports lua_newstate
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 21:54:57 -08:00 |
|
Leonardo de Moura
|
9000c7c2fa
|
feat(lua): expose format objects in the Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 21:54:42 -08:00 |
|
Leonardo de Moura
|
6f432b4094
|
feat(lua): make Lua use our malloc/realloc, catch error when initializing Lua
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 15:52:39 -08:00 |
|
Leonardo de Moura
|
57b9657bf0
|
feat(lua): add lua_exception for wrapping lua errors, and improve Lua error messages in the Lean frontend
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 15:19:26 -08:00 |
|
Leonardo de Moura
|
a9b2be0b9c
|
feat(frontends/lean): add support for embedded Lua scripts in Lean files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-11-07 13:56:04 -08:00 |
|