%0 Conference Proceedings %T Game Developers Need Lua AiR %T Static Analysis Of Lua Using Interface Models %+ Analysis and Transformation based on rEliAble tool coMpositionS (ATEAMS) %+ IC3D Media %A Klint, Paul %A Roosendaal, Loren %A van Rozen, Riemer %Z Part 17: Game Development and Model-Driven Software Development %< avec comité de lecture %( Lecture Notes in Computer Science %B ICEC 2012 - 11th International Confernece on Entertainment Computing %C Bremen, Germany %Y Gerhard Goos %Y Juris Hartmanis %Y Jan van Leeuwen %I Springer %3 Entertainment Computing - ICEC 2012 %V 7522 %P 530-535 %8 2012-09-26 %D 2012 %R 10.1007/978-3-642-33542-6_69 %K Lua %K Static Program Analysis %K Game Software %K Game development %K Script language %K Control flow graph %K Call site %K Abstract syntax tree %Z Computer Science [cs]/Computation and Language [cs.CL]Conference papers %X Game development businesses often choose Lua for separating scripted game logic from reusable engine code. Lua can easily be embedded, has simple interfaces, and offers a powerful and extensible scripting language. Using Lua, developers can create prototypes and scripts at early development stages. However, when larger quantities of engine code and script are available, developers encounter maintainability and quality problems. First, the available automated solutions for interoperability do not take domain-specific optimizations into account. Maintaining a coupling by hand between the Lua interpreter and the engine code, usually in C++, is labour intensive and error-prone. Second, assessing the quality of Lua scripts is hard due to a lack of tools that support static analysis. Lua scripts for dynamic analysis only report warnings and errors at run-time and are limited to code coverage. A common solution to the first problem is developing an Interface Definition Language (IDL) from which "glue code", interoperability code between interfaces, is generated automatically. We address quality problems by proposing a method to complement techniques for Lua analysis. We introduce Lua AiR (Lua Analysis in Rascal), a framework for static analysis of Lua script in its embedded context, using IDL models and Rascal. %G English %Z TC 14 %2 https://inria.hal.science/hal-00758607/document %2 https://inria.hal.science/hal-00758607/file/978-3-642-33542-6_69_Chapter.pdf %L hal-00758607 %U https://inria.hal.science/hal-00758607 %~ INRIA %~ INRIA-LILLE %~ INRIA_TEST %~ TESTALAIN1 %~ IFIP-LNCS %~ IFIP %~ INRIA2 %~ IFIP-TC %~ IFIP-ICEC %~ IFIP-TC14 %~ IFIP-LNCS-7522